ft_transcendence/monitoring/prometheus/prometheus.yml
2025-12-17 21:02:12 +01:00

33 lines
727 B
YAML

global:
scrape_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['mon-prometheus:9090']
- job_name: 'cadvisor'
static_configs:
- targets: ['mon-cadvisor:8080']
- job_name: 'blackbox'
metrics_path: /probe
params:
module: [http_2xx]
static_configs:
- targets:
- http://nginx:8080/ok
- http://auth/monitoring
- http://user/monitoring
- http://chat/monitoring
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: mon-blackbox:9115