👌 IMPROVE: Add heartbeat targets configuration for Prometheus monitoring and save to new JSON file

This commit is contained in:
2025-08-04 16:58:39 +02:00
parent 7f9f7b1aa4
commit ddfdb91401
3 changed files with 438 additions and 0 deletions

View File

@@ -19,6 +19,13 @@ scrape_configs:
scrape_interval: 2m # Change it carefully, it is a heavy job to keep open and close to check the health of DB connection, there annotation to refactor it and use a new pgDebounce image.
scheme: http
- job_name: "heartbeat"
file_sd_configs:
- files:
- "/opt/phx/main/config/hetzner_heartbeat_targets.json"
refresh_interval: 30s
honor_labels: true
# - job_name: "phoenix-system"
# file_sd_configs:
# - files: