Fix telegraf meta enabling condition
Change-Id: I063bd5e948ba31990ffb8dd971e738731b41d996 Closes-Bug: PROD-20950
This commit is contained in:
parent
858fc1fb57
commit
c61d874083
1 changed files with 1 additions and 3 deletions
|
@ -1,8 +1,7 @@
|
||||||
{%- if pillar.prometheus is defined %}
|
|
||||||
{%- from "prometheus/map.jinja" import server, relay with context %}
|
{%- 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:
|
agent:
|
||||||
input:
|
input:
|
||||||
{%- if relay.get('enabled', False) and server.get("enabled", False) and not server.get("is_container", True) %}
|
|
||||||
procstat:
|
procstat:
|
||||||
process:
|
process:
|
||||||
{%- if relay.get('enabled', False) %}
|
{%- if relay.get('enabled', False) %}
|
||||||
|
@ -13,5 +12,4 @@ agent:
|
||||||
prometheus:
|
prometheus:
|
||||||
pattern: '/usr/bin/prometheus[^-]'
|
pattern: '/usr/bin/prometheus[^-]'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{% endif %}
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
Loading…
Reference in a new issue