Fix telegraf meta enabling condition

Change-Id: I063bd5e948ba31990ffb8dd971e738731b41d996
Closes-Bug: PROD-20950
This commit is contained in:
Dmitry Kalashnik 2018-06-27 15:58:14 +04:00
parent 858fc1fb57
commit c61d874083

View file

@ -1,8 +1,7 @@
{%- if pillar.prometheus is defined %}
{%- from "prometheus/map.jinja" import server, relay with context %}
{%- if pillar.prometheus is defined and relay.get('enabled', False) and server.get("enabled", False) and not server.get("is_container", True) %}
agent:
input:
{%- if relay.get('enabled', False) and server.get("enabled", False) and not server.get("is_container", True) %}
procstat:
process:
{%- if relay.get('enabled', False) %}
@ -13,5 +12,4 @@ agent:
prometheus:
pattern: '/usr/bin/prometheus[^-]'
{%- endif %}
{% endif %}
{%- endif %}