79 lines
2.1 KiB
YAML
79 lines
2.1 KiB
YAML
global:
|
|
scrape_interval: 10s
|
|
evaluation_interval: 10s
|
|
scrape_timeout: 5s
|
|
|
|
rule_files:
|
|
- /etc/prometheus/rules/*.yml
|
|
|
|
# Метрики API/worker приходят только по OTLP (--web.enable-otlp-receiver) по mTLS + Basic Auth.
|
|
# /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
|
|
scheme: https
|
|
tls_config:
|
|
ca_file: /run/certs/ca.crt
|
|
cert_file: /run/certs/client.crt
|
|
key_file: /run/certs/client.key
|
|
server_name: localhost
|
|
basic_auth:
|
|
username: prometheus-self
|
|
password_file: /run/secrets/prometheus_self_password
|
|
static_configs: [{ targets: ['localhost:9090'] }]
|
|
|
|
- job_name: otel-collector
|
|
scheme: https
|
|
tls_config:
|
|
ca_file: /run/certs/ca.crt
|
|
cert_file: /run/certs/client.crt
|
|
key_file: /run/certs/client.key
|
|
server_name: otel-collector
|
|
static_configs: [{ targets: ['otel-collector:8888'] }]
|
|
|
|
- job_name: haproxy
|
|
scheme: https
|
|
metrics_path: /metrics
|
|
tls_config:
|
|
ca_file: /run/certs/ca.crt
|
|
cert_file: /run/certs/client.crt
|
|
key_file: /run/certs/client.key
|
|
server_name: haproxy
|
|
static_configs: [{ targets: ['haproxy:8404'] }]
|
|
|
|
- job_name: rabbitmq
|
|
scheme: https
|
|
tls_config:
|
|
ca_file: /run/certs/ca.crt
|
|
cert_file: /run/certs/client.crt
|
|
key_file: /run/certs/client.key
|
|
server_name: broker
|
|
static_configs: [{ targets: ['broker:15691'] }]
|
|
|
|
- job_name: loki
|
|
scheme: https
|
|
tls_config:
|
|
ca_file: /run/certs/ca.crt
|
|
cert_file: /run/certs/client.crt
|
|
key_file: /run/certs/client.key
|
|
server_name: loki
|
|
static_configs: [{ targets: ['loki:3100'] }]
|
|
|
|
- job_name: tempo
|
|
scheme: https
|
|
tls_config:
|
|
ca_file: /run/certs/ca.crt
|
|
cert_file: /run/certs/client.crt
|
|
key_file: /run/certs/client.key
|
|
server_name: tempo
|
|
static_configs: [{ targets: ['tempo:3200'] }]
|