formula-prometheus/prometheus/meta/telegraf.yml

16 lines
570 B
YAML
Raw Normal View History

{%- 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 %}