Files
mtusi2026lab7/infra/otel/prometheus.yaml
T

19 lines
493 B
YAML

global:
scrape_interval: 5s
evaluation_interval: 5s
rule_files: [/etc/prometheus/alerts.yml]
scrape_configs:
- job_name: messenger
scheme: https
tls_config: &collector-tls
ca_file: /run/secrets/lab_ca
cert_file: /run/secrets/prom_client_crt
key_file: /run/secrets/prom_client_key
static_configs:
- targets: [collector:9443]
- job_name: collector
scheme: https
tls_config: *collector-tls
static_configs:
- targets: [collector:9444]