c61d874083
Change-Id: I063bd5e948ba31990ffb8dd971e738731b41d996 Closes-Bug: PROD-20950
15 lines
570 B
YAML
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 %}
|