| {% from "prometheus/map.jinja" import elasticsearch_exporter with context %} |
| |
| [DEFAULT] |
| QueryIntervalSecs = {{ elasticsearch_exporter.query_interval|default(15) }} |
| QueryTimeoutSecs = {{ elasticsearch_exporter.query_timeout|default(15) }} |
| QueryIndices = {{ elasticsearch_exporter.query_indices|default('_all') }} |
| |
| {%- for name, query in elasticsearch_exporter.queries.iteritems() | sort %} |
| {%- if query.get('enabled', True) %} |
| [query_{{ name }}] |
| {%- if query.interval is defined %} |
| QueryIntervalSecs = {{ query.interval }} |
| {%- endif %} |
| {%- if query.timeout is defined %} |
| QueryTimeoutSecs = {{ query.timeout }} |
| {%- endif %} |
| {%- if query.indices is defined %} |
| QueryIndices = {{ query.indices }} |
| {%- endif %} |
| QueryJson = {{ query.json|json }} |
| {%- endif %} |
| {%- endfor %} |