Files
mtusi2026lab7/infra/otel/prometheus.yaml
T
2026-11-18 11:36:21 +03:00

23 lines
558 B
YAML

global:
scrape_interval: 5s
evaluation_interval: 5s
rule_files:
- /etc/prometheus/alerts.yaml
scrape_configs:
- job_name: messenger
scheme: https
tls_config: &tls
ca_file: /run/identity/ca.crt
cert_file: /run/identity/tls.crt
key_file: /run/identity/tls.key
static_configs:
- targets: ['otel-collector:9444']
- job_name: collector
scheme: https
tls_config: *tls
static_configs:
- targets: ['otel-collector:9445']
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']