Add monitoring role

This commit is contained in:
polyfloyd 2023-09-24 15:26:04 +02:00
parent dca17d5750
commit d06406c9f4
17 changed files with 539 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# Managed by Ansible
global:
evaluation_interval: 1m
scrape_interval: 1m
external_labels:
environment: monitoring
rule_files:
- /etc/prometheus/rules/*.rules
scrape_configs:
- job_name: "prometheus"
metrics_path: "/prometheus/metrics"
static_configs:
- targets: [ "localhost:9090" ]
{{ prometheus_scrape_configs | to_nice_yaml | indent(2) }}