2018-06-18 08:32:59 -04:00
|
|
|
{%- from "prometheus/map.jinja" import server, relay with context %}
|
2018-06-27 07:58:14 -04:00
|
|
|
{%- if pillar.prometheus is defined and relay.get('enabled', False) and server.get("enabled", False) and not server.get("is_container", True) %}
|
2018-06-18 08:32:59 -04:00
|
|
|
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 %}
|