Add Postgres monitoring for Prometheus

This commit is contained in:
Thomas Kleinendorst 2024-10-21 09:43:27 +02:00
parent 653aef8c38
commit 4054f1a02e
4 changed files with 27 additions and 0 deletions

View file

@ -11,6 +11,9 @@ prometheus_targets:
grafana:
- targets:
- raspberry-pi-1.kleinendorst.info:3000
postgres:
- targets:
- raspberry-pi-1.kleinendorst.info:9187
prometheus_web_listen_address: 127.0.0.1:9090
prometheus_scrape_configs:
- job_name: "prometheus"
@ -25,6 +28,10 @@ prometheus_scrape_configs:
file_sd_configs:
- files:
- "{{ prometheus_config_dir }}/file_sd/grafana.yml"
- job_name: "postgres"
file_sd_configs:
- files:
- "{{ prometheus_config_dir }}/file_sd/postgres.yml"
prometheus_alertmanager_config:
- static_configs:
- targets: