2024-07-09 15:43:41 -05:00
|
|
|
# my global config
|
2024-07-09 16:16:54 -05:00
|
|
|
# vim:ft=ansible:
|
2024-07-09 15:43:41 -05:00
|
|
|
---
|
|
|
|
global:
|
|
|
|
scrape_interval: 15s
|
|
|
|
evaluation_interval: 15s
|
|
|
|
|
|
|
|
scrape_configs:
|
2024-07-09 16:29:50 -05:00
|
|
|
# Default Prometheus job to monitor itself
|
2024-07-09 15:43:41 -05:00
|
|
|
- job_name: "prometheus"
|
|
|
|
static_configs:
|
|
|
|
- targets: ["localhost:9090"]
|
2024-07-09 16:29:50 -05:00
|
|
|
|
|
|
|
# These two jobs are included for every node in our inventory
|
2024-07-09 15:43:41 -05:00
|
|
|
- job_name: "node-exporter"
|
|
|
|
static_configs:
|
|
|
|
- targets:
|
|
|
|
{% for host in groups['tags_nagios'] %}
|
|
|
|
- '{{ host }}:9100'
|
|
|
|
{% endfor %}
|
|
|
|
- job_name: "cadvisor-exporter"
|
|
|
|
static_configs:
|
|
|
|
- targets:
|
|
|
|
{% for host in groups['tags_nagios'] %}
|
|
|
|
- '{{ host }}:9101'
|
|
|
|
{% endfor %}
|
2024-07-09 16:29:50 -05:00
|
|
|
|
|
|
|
# This container is used on every psql machine
|
|
|
|
- job_name: "psql-exporter"
|
|
|
|
static_configs:
|
|
|
|
- targets:
|
|
|
|
{% for host in groups['tags_nagios-checkpgsql'] %}
|
|
|
|
- '{{ host }}:9102'
|
|
|
|
{% endfor %}
|