formula-prometheus/prometheus/meta/telegraf.yml
Dmitry Kalashnik c61d874083 Fix telegraf meta enabling condition
Change-Id: I063bd5e948ba31990ffb8dd971e738731b41d996
Closes-Bug: PROD-20950
2018-06-27 15:58:14 +04:00

15 lines
570 B
YAML

{%- 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:
procstat:
process:
{%- if relay.get('enabled', False) %}
prometheus-relay:
pattern: '/usr/bin/prometheus-relay'
{%- endif %}
{%- if server.get("enabled", False) and not server.get("is_container", True) %}
prometheus:
pattern: '/usr/bin/prometheus[^-]'
{%- endif %}
{%- endif %}