xoxys.prometheus/templates/conf/prometheus.yml.j2
Robert Kaussow 78ce39c746
All checks were successful
continuous-integration/drone/push Build is passing
fix: fix version install constraint
2021-05-30 14:26:05 +02:00

34 lines
1.0 KiB
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
global:
{{ prometheus_global | to_nice_yaml(indent=2) | indent(2, False) }}
external_labels:
{{ prometheus_external_labels | to_nice_yaml(indent=2) | indent(4, False) }}
{% if prometheus_remote_write | length > 0 %}
remote_write:
{{ prometheus_remote_write | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
{% if prometheus_remote_read | length > 0 %}
remote_read:
{{ prometheus_remote_read | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
rule_files:
- {{ prometheus_rules_dir }}/*.rules
{% if prometheus_alertmanager_config | length > 0 %}
alerting:
alertmanagers:
{{ prometheus_alertmanager_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% if prometheus_alert_relabel_configs | length > 0 %}
alert_relabel_configs:
{{ prometheus_alert_relabel_configs | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
{% endif %}
scrape_configs:
{{ prometheus_scrape_configs | to_nice_yaml(indent=2) | indent(2, False) }}