diff --git a/plugins/prometheus/alerta_prometheus.py b/plugins/prometheus/alerta_prometheus.py index cdcc1d40..77703daf 100644 --- a/plugins/prometheus/alerta_prometheus.py +++ b/plugins/prometheus/alerta_prometheus.py @@ -127,7 +127,7 @@ def take_action(self, alert: Alert, action: str, text: str, **kwargs) -> Any: # if alertmanager is clustered behind a load balancer that mirrors requests we should prefer to create one silence # rather than many - if ALERTMANAGER_USE_EXTERNALURL_FOR_SILENCES: + if USE_AM_EXTERNALURL_FOR_SILENCES: base_url = alert.attributes.get('externalUrl', DEFAULT_ALERTMANAGER_API_URL) or ALERTMANAGER_API_URL else: base_url = ALERTMANAGER_API_URL or alert.attributes.get('externalUrl', DEFAULT_ALERTMANAGER_API_URL)