From 9d408a70c7d01fd7c94f9b814af916396d7cbf1f Mon Sep 17 00:00:00 2001 From: Paul Cuzner Date: Thu, 3 Jun 2021 11:34:19 +1200 Subject: [PATCH] mgr/cephadm:fix alerts sent to wrong URL The path_prefix in prometheus.yml was specifying an endpoint prefix, which was invalid. This resulted in 404 errors when trying to send alerts to alertmanager and blocked alerts being sent on to the ceph-dashboard API receiver. This fix remves this prefix. Fixes: https://tracker.ceph.com/issues/51073 Signed-off-by: Paul Cuzner --- .../mgr/cephadm/templates/services/prometheus/prometheus.yml.j2 | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2 b/src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2 index f059e4cabc9..bb0a8fcae51 100644 --- a/src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2 +++ b/src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2 @@ -8,7 +8,6 @@ rule_files: alerting: alertmanagers: - scheme: http - path_prefix: /alertmanager static_configs: - targets: [{{ alertmgr_targets|join(', ') }}] {% endif %}