Files
mtusi2026lab7/infra/otel/prometheus.yaml

23 lines
460 B
YAML

global:
scrape_interval: 3s
evaluation_interval: 3s
rule_files:
- /etc/prometheus/alerts.yaml
scrape_configs:
- job_name: otlp
honor_labels: true
static_configs:
- targets:
- otel-collector:8889
scheme: https
tls_config: &id001
ca_file: /pki/ca.crt
cert_file: /identity/service.crt
key_file: /identity/service.key
- job_name: collector
static_configs:
- targets:
- otel-collector:8888
scheme: https
tls_config: *id001