From: Sebastian Wagner Date: Mon, 30 Aug 2021 10:37:26 +0000 (+0200) Subject: doc/cephadm: monitoring: Add "Adding Alertmanager webhooks" X-Git-Tag: v17.1.0~984^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=90f4cc017a49859224f0817fefc31ae459f5deec;p=ceph-ci.git doc/cephadm: monitoring: Add "Adding Alertmanager webhooks" Signed-off-by: Sebastian Wagner --- 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