Files
Wordpress-Ansible/docker/monitoring/prometheus.yaml
sotos 5940099978
Some checks failed
CI/CD Pipeline / lint (push) Failing after 57s
CI/CD Pipeline / deploy (push) Failing after 1m21s
asd
2025-12-18 15:29:47 +01:00

26 lines
682 B
YAML

---
global:
scrape_interval: 15s
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: 'nginx'
static_configs:
- targets: ['nginx-prometheus-exporter:9113']
- 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