Add Grafana as scrape target

This commit is contained in:
Thomas Kleinendorst 2024-09-19 13:31:59 +02:00
parent 1ec2428fa9
commit 3c0b5ebdab

View file

@ -2,13 +2,32 @@
# Prometheus
prometheus_version: "2.54.1"
prometheus_targets:
prometheus:
- targets:
- 127.0.0.1:9090
node:
- targets:
- raspberry-pi-1.kleinendorst.info:9100
- 127.0.0.1:9100
grafana:
- targets:
- 127.0.0.1:3000
prometheus_scrape_configs:
- job_name: "prometheus"
file_sd_configs:
- files:
- "{{ prometheus_config_dir }}/file_sd/prometheus.yml"
- job_name: "node"
file_sd_configs:
- files:
- "{{ prometheus_config_dir }}/file_sd/node.yml"
- job_name: "grafana"
file_sd_configs:
- files:
- "{{ prometheus_config_dir }}/file_sd/grafana.yml"
prometheus_alertmanager_config:
- static_configs:
- targets:
- raspberry-pi-1.kleinendorst.info:9093
- 127.0.0.1:9093
# Node exporter
node_exporter_version: "1.8.2"
node_exporter_enabled_collectors: