forked from bitlair/ansible
Add monitoring role
This commit is contained in:
parent
dca17d5750
commit
d06406c9f4
17 changed files with 539 additions and 0 deletions
18
roles/monitoring/templates/prometheus.yml
Normal file
18
roles/monitoring/templates/prometheus.yml
Normal 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) }}
|
Loading…
Add table
Add a link
Reference in a new issue