Files
mtusi2026lab7-fork/infra/otel/prometheus.yml

22 lines
551 B
YAML

global:
scrape_interval: 2s
evaluation_interval: 2s
storage:
tsdb:
out_of_order_time_window: 30s
otlp:
promote_resource_attributes: [service.name, service.version, deployment.environment.name]
translation_strategy: UnderscoreEscapingWithSuffixes
rule_files: [/etc/prometheus/alerts.yml]
scrape_configs:
- job_name: otel-collector
scheme: https
tls_config:
ca_file: /run/lab-tls/ca.crt
cert_file: /run/lab-tls/tls.crt
key_file: /run/lab-tls/tls.key
static_configs:
- targets: [otel-collector:4318]