forked from mtusi2026/mtusi2026lab6
35 lines
1018 B
YAML
35 lines
1018 B
YAML
global:
|
|
scrape_interval: 10s
|
|
evaluation_interval: 10s
|
|
scrape_timeout: 5s
|
|
|
|
rule_files:
|
|
- /etc/prometheus/rules/*.yml
|
|
|
|
# Метрики API/worker приходят только по OTLP (--web.enable-otlp-receiver);
|
|
# /internal/metrics — legacy JSON, не exposition-формат, и не скрейпится.
|
|
otlp:
|
|
translation_strategy: UnderscoreEscapingWithSuffixes
|
|
promote_resource_attributes:
|
|
- service.version
|
|
- deployment.environment.name
|
|
|
|
storage:
|
|
tsdb:
|
|
out_of_order_time_window: 10m
|
|
|
|
scrape_configs:
|
|
- job_name: prometheus
|
|
static_configs: [{ targets: ['localhost:9090'] }]
|
|
- job_name: otel-collector
|
|
static_configs: [{ targets: ['otel-collector:8888'] }]
|
|
- job_name: haproxy
|
|
metrics_path: /metrics
|
|
static_configs: [{ targets: ['haproxy:8404'] }]
|
|
- job_name: rabbitmq
|
|
static_configs: [{ targets: ['broker:15692'] }]
|
|
- job_name: loki
|
|
static_configs: [{ targets: ['loki:3100'] }]
|
|
- job_name: tempo
|
|
static_configs: [{ targets: ['tempo:3200'] }]
|