]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephadm: monitoring: Add "Adding Alertmanager webhooks"
authorSebastian Wagner <sewagner@redhat.com>
Mon, 30 Aug 2021 10:37:26 +0000 (12:37 +0200)
committerSebastian Wagner <sewagner@redhat.com>
Mon, 30 Aug 2021 11:14:44 +0000 (13:14 +0200)
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
doc/cephadm/monitoring.rst

index d3ca5246c4805990de7e6fd49e061cf1b06acb53..a88779dcf92688e0ffd0cbb500236729ae15f9bc 100644 (file)
@@ -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' ``<webhook_configs>`` configuration.
+
+Run ``reconfig`` on the service to update its configuration:
+
+.. prompt:: bash #
+
+  ceph orch reconfig alertmanager
\ No newline at end of file