Files
mtusi2026lab7/infra/otel/prometheus.yaml
T

24 lines
628 B
YAML

global:
scrape_interval: 2s
evaluation_interval: 2s
rule_files:
- /etc/prometheus/alerts.yaml
scrape_configs:
- job_name: messenger-otel
honor_labels: true
scheme: https
tls_config:
ca_file: /run/tls/trust/ca.crt
cert_file: /run/tls/client/service.crt
key_file: /run/tls/client/service.key
static_configs: [{targets: ["otel-collector:8889"]}]
- job_name: collector
scheme: https
tls_config:
ca_file: /run/tls/trust/ca.crt
cert_file: /run/tls/client/service.crt
key_file: /run/tls/client/service.key
static_configs: [{targets: ["otel-collector:8888"]}]