2025-12-16 11:26:25 +01:00
|
|
|
---
|
2025-12-08 09:45:23 +01:00
|
|
|
global:
|
|
|
|
|
scrape_interval: 15s
|
|
|
|
|
|
|
|
|
|
scrape_configs:
|
2025-12-15 11:10:32 +01:00
|
|
|
- job_name: "prometheus"
|
2025-12-08 09:45:23 +01:00
|
|
|
static_configs:
|
2025-12-15 11:10:32 +01:00
|
|
|
- targets: ["localhost:9090"]
|
2025-12-17 10:53:59 +01:00
|
|
|
|
|
|
|
|
- job_name: 'nginx'
|
|
|
|
|
static_configs:
|
|
|
|
|
- targets: ['nginx-prometheus-exporter:9113']
|
2025-12-18 15:29:47 +01:00
|
|
|
|
|
|
|
|
- job_name: 'snake-game'
|
|
|
|
|
metrics_path: /probe
|
|
|
|
|
params:
|
|
|
|
|
module: [http_2xx] # probe returns 1 if HTTP 200
|
|
|
|
|
static_configs:
|
|
|
|
|
- targets: ['snake-game:8080'] # snake game container + port
|
|
|
|
|
relabel_configs:
|
|
|
|
|
- source_labels: [__address__]
|
|
|
|
|
target_label: __param_target
|
|
|
|
|
- source_labels: [__param_target]
|
|
|
|
|
target_label: instance
|
|
|
|
|
- target_label: __address__
|
|
|
|
|
replacement: blackbox-exporter:9115
|