Files
mtusi2026lab7/infra/prometheus/prometheus.yml
T

29 lines
605 B
YAML

global:
scrape_interval: 15s
evaluation_interval: 15s
otlp:
promote_resource_attributes:
- deployment.environment.name
- service.version
storage:
tsdb:
out_of_order_time_window: 30m
rule_files:
- /etc/prometheus/rules/*.yml
scrape_configs:
- job_name: otel-collector
scheme: https
tls_config:
ca_file: /run/tls/ca.crt
cert_file: /run/tls/scraper.lab7.internal.crt
key_file: /run/tls/scraper.lab7.internal.key
static_configs:
- targets: ["otel-collector:9443"]
- job_name: prometheus
static_configs:
- targets: ["localhost:9090"]