formula-prometheus/prometheus/meta/telegraf.yml
Dmitry Kalashnik c3716cb1e9 Add alerts and targets for prometheus LTS and relay
Closes-Bug: PROD-20724
Change-Id: I1f4839a4900a2d417d85a52ffef6e11e4bb2cac1
2018-06-20 12:19:36 +04:00

17 lines
592 B
YAML

{%- if pillar.prometheus is defined %}
{%- from "prometheus/map.jinja" import server, relay with context %}
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) %}
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 %}
{%- endif %}