c3716cb1e9
Closes-Bug: PROD-20724 Change-Id: I1f4839a4900a2d417d85a52ffef6e11e4bb2cac1
17 lines
592 B
YAML
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 %}
|