Commit 13ae3fd0 authored by Alfonso Tierno's avatar Alfonso Tierno
Browse files

parametrization of prometheus jinja2 template



it allows activating/desactivating blocks of prometheus jobs
by setting variables at begining
Signed-off-by: Alfonso Tierno's avatartierno <alfonso.tiernosepulveda@telefonica.com>
parent 381ca211
{# change to 'true' or 'false' according to your requirements #}
{% set snmpexporter = true %}
{% if snmpexporter %}
- job_name: '{{ JOB_NAME }}'
static_configs:
- targets:
......@@ -12,4 +16,4 @@
target_label: instance
- target_label: __address__
replacement: {{ EXPORTER_POD_IP }}:{{ EXPORTER_POD_PORT }} # The SNMP exporter's real hostname:port.
{% endif %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment