From baceda25c3b81cb7e55f32771c70f01355a6b1b0 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 (cherry picked from commit 9d408a70c7d01fd7c94f9b814af916396d7cbf1f) --- .../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 f059e4cabc935..bb0a8fcae518f 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 %} -- 2.39.5