2021-03-06 00:46:13 +01:00
|
|
|
---
|
|
|
|
{{ ansible_managed | comment }}
|
2021-02-10 20:42:37 +01:00
|
|
|
|
|
|
|
global:
|
|
|
|
external_labels:
|
2021-03-06 00:46:13 +01:00
|
|
|
monitor: '{{ ansible_fqdn }}'
|
2021-02-10 20:42:37 +01:00
|
|
|
|
|
|
|
alerting:
|
|
|
|
alertmanagers:
|
2021-03-06 00:46:13 +01:00
|
|
|
- static_configs:
|
|
|
|
- targets: ['{{ prometheus_alertmanager }}']
|
2021-02-10 20:42:37 +01:00
|
|
|
|
|
|
|
rule_files:
|
2021-03-06 00:46:13 +01:00
|
|
|
- 'alert.rules.yml'
|
2021-02-10 20:42:37 +01:00
|
|
|
|
|
|
|
scrape_configs:
|
|
|
|
- job_name: federate
|
2021-03-06 00:46:13 +01:00
|
|
|
scrape_interval: 30s
|
2021-02-10 20:42:37 +01:00
|
|
|
metrics_path: '/federate'
|
2021-03-05 00:54:44 +01:00
|
|
|
honor_labels: true
|
2021-03-06 00:46:13 +01:00
|
|
|
honor_timestamps: true
|
2021-02-10 20:42:37 +01:00
|
|
|
file_sd_configs:
|
|
|
|
- files:
|
|
|
|
- '/etc/prometheus/targets.json'
|
|
|
|
relabel_configs:
|
|
|
|
- source_labels: [__address__]
|
|
|
|
target_label: __param_target
|
|
|
|
- source_labels: [__param_target]
|
|
|
|
target_label: __address__
|
|
|
|
replacement: '$1:9090'
|
|
|
|
params:
|
2021-03-06 00:46:13 +01:00
|
|
|
match[]:
|
2021-02-10 20:42:37 +01:00
|
|
|
- '{job="servers"}'
|
2021-04-10 18:01:55 +02:00
|
|
|
- '{job="postgresql"}'
|
2021-02-10 20:42:37 +01:00
|
|
|
- '{job="prometheus"}'
|
|
|
|
- '{job="unifi_snmp"}'
|
|
|
|
- '{job="ups_snmp"}'
|
2021-08-20 18:22:00 +02:00
|
|
|
- '{job="apc_pdu_snmp"}'
|
2021-02-10 20:42:37 +01:00
|
|
|
- '{job="docker"}'
|
2021-03-06 02:41:58 +01:00
|
|
|
- '{job="switch_snmp"}'
|
2021-12-31 14:45:05 +01:00
|
|
|
- '{job="ipmi"}'
|
2021-12-31 20:04:24 +01:00
|
|
|
- '{job="ilo_snmp"}'
|
2021-03-06 00:46:13 +01:00
|
|
|
...
|