this vault setup for injective sensitive variables uses the approach described in https://docs.ansible.com/ansible/10/tips_tricks/ansible_tips_tricks.html#keep-vaulted-variables-safely-visible
40 lines
839 B
Django/Jinja
40 lines
839 B
Django/Jinja
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
|
|
external_labels:
|
|
monitor: "{{ ansible_host }}"
|
|
|
|
scrape_configs:
|
|
- job_name: "prometheus"
|
|
static_configs:
|
|
- targets: ["localhost:9090"]
|
|
|
|
- job_name: "node"
|
|
static_configs:
|
|
- targets: ["{{ ansible_host }}:9100"]
|
|
|
|
- job_name: "cadvisor"
|
|
static_configs:
|
|
- targets: ["cadvisor:8080"]
|
|
|
|
- job_name: "traefik"
|
|
static_configs:
|
|
- targets: ["{{ ansible_host }}:8082"]
|
|
|
|
- job_name: "loki"
|
|
static_configs:
|
|
- targets: ["loki:3100"]
|
|
|
|
- job_name: "promtail"
|
|
static_configs:
|
|
- targets: ["promtail:9080"]
|
|
|
|
rule_files:
|
|
- "/etc/prometheus/extra/rules/*.yml"
|
|
- "/etc/prometheus/extra/rules/*.json"
|
|
|
|
scrape_config_files:
|
|
- "/etc/prometheus/extra/scrape_configs/*.yml"
|
|
- "/etc/prometheus/extra/scrape_configs/*.json"
|