Add extra condition for prometheus meta
Change-Id: I21e5450e504923823b7fcf9b44a56c823f8d8544
PROD-related: PROD-31414
diff --git a/prometheus/meta/prometheus.yml b/prometheus/meta/prometheus.yml
index b8266fd..6607168 100644
--- a/prometheus/meta/prometheus.yml
+++ b/prometheus/meta/prometheus.yml
@@ -1,5 +1,6 @@
{%- if pillar.prometheus is defined %}
{%- from "prometheus/map.jinja" import server, alertmanager, remote_storage_adapter, monitoring, relay, sf_notifier with context %}
+{%- if server.get('enabled', False) or remote_storage_adapter.get('enabled', False) or alertmanager.get('enabled', False) or relay.get('enabled', False) or sf_notifier.get('enabled', False) %}
server:
alert:
{%- if server.get('enabled', False) %}
@@ -218,3 +219,4 @@
{%- endif %}
{%- endif %}
{%- endif %}
+{%- endif %}