Files
mtusi2026lab7-fork/infra/otel/prometheus.yaml
T

22 lines
580 B
YAML

global:
scrape_interval: 5s
evaluation_interval: 5s
scrape_configs:
- job_name: messenger
scheme: https
tls_config:
ca_file: /run/tls/ca.crt
cert_file: /run/tls/otel-scraper.crt
key_file: /run/tls/otel-scraper.key
static_configs:
- targets: [otel-collector:8889]
- job_name: collector
scheme: https
tls_config:
ca_file: /run/tls/ca.crt
cert_file: /run/tls/otel-scraper.crt
key_file: /run/tls/otel-scraper.key
static_configs:
- targets: [otel-collector:8888]
rule_files: [/etc/prometheus/alerts.yaml]