Files
mtusi2026lab7/infra/prometheus/prometheus.yml

63 lines
1.3 KiB
YAML

global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
rule_files:
- /etc/prometheus/rules/*.yml
otlp:
translation_strategy: UnderscoreEscapingWithSuffixes
promote_resource_attributes:
- service.name
- service.version
- deployment.environment.name
- container.name
- compose.project
- compose.service
keep_identifying_resource_attributes: true
storage:
tsdb:
out_of_order_time_window: 30m
exemplars:
max_exemplars: 100000
scrape_configs:
- job_name: prometheus
static_configs:
- targets:
- localhost:9090
- job_name: otel-collector
static_configs:
- targets:
- otel-collector:48888
scheme: https
tls_config:
ca_file: /run/pki/ca.crt
cert_file: /run/pki/tls.crt
key_file: /run/pki/tls.key
- job_name: loki
static_configs:
- targets:
- loki:9443
scheme: https
tls_config:
ca_file: /run/pki/ca.crt
cert_file: /run/pki/tls.crt
key_file: /run/pki/tls.key
- job_name: tempo
static_configs:
- targets:
- tempo:9443
scheme: https
tls_config:
ca_file: /run/pki/ca.crt
cert_file: /run/pki/tls.crt
key_file: /run/pki/tls.key
- job_name: grafana
static_configs:
- targets:
- grafana:9443
scheme: https
tls_config:
ca_file: /run/pki/ca.crt
cert_file: /run/pki/tls.crt
key_file: /run/pki/tls.key