From 90f4cc017a49859224f0817fefc31ae459f5deec Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Mon, 30 Aug 2021 12:37:26 +0200 Subject: [PATCH] doc/cephadm: monitoring: Add "Adding Alertmanager webhooks" Signed-off-by: Sebastian Wagner --- doc/cephadm/monitoring.rst | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/doc/cephadm/monitoring.rst b/doc/cephadm/monitoring.rst index d3ca5246c48..a88779dcf92 100644 --- a/doc/cephadm/monitoring.rst +++ b/doc/cephadm/monitoring.rst @@ -332,4 +332,31 @@ update its configuration: ceph orch reconfig grafana -The ``reconfig`` command also sets the proper URL for Ceph Dashboard. \ No newline at end of file +The ``reconfig`` command also sets the proper URL for Ceph Dashboard. + +Setting up Alertmanager +----------------------- + +Adding Alertmanager webhooks +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +To add new webhooks to the Alertmanager configuration, add additional +webhook urls like so: + +.. code-block:: yaml + + service_type: alertmanager + spec: + user_data: + default_webhook_urls: + - "https://foo" + - "https://bar" + +Where ``default_webhook_urls`` is a list of additional URLs that are +added to the default receivers' ```` configuration. + +Run ``reconfig`` on the service to update its configuration: + +.. prompt:: bash # + + ceph orch reconfig alertmanager \ No newline at end of file -- 2.47.3