Skip to content

Commit d600b1a

Browse files
authored
update alertmanager docs (#2011)
1 parent 2666d4f commit d600b1a

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

docs/configuration/alertmanager-integration/outofcluster-prometheus.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,52 @@ This integration lets your central Prometheus send alerts to Robusta, as if they
4949

5050
.. include:: ./_testing_integration.rst
5151

52+
Send Alerts to Robusta with API Key
53+
======================================
54+
55+
If you are using a third-party AlertManager and want to give it separate credentials (instead of using the signing key from ``generated_values.yaml``), you can create a dedicated API key in the Robusta UI.
56+
57+
.. note::
58+
This feature is available with the Robusta SaaS platform and self-hosted commercial plans. It is not available in the open-source version.
59+
60+
1. In the Robusta UI, go to **Settings → API Keys**.
61+
2. Click **New API Key**, select **Alerts: Write** permissions, and **Save**.
62+
3. Copy the generated API key.
63+
4. Find your ``account_id``:
64+
65+
- In your **generated_values.yaml** file (from installation), or
66+
- In the Robusta UI under **Settings → Workspace**.
67+
68+
5. Edit the configuration for your AlertManager, using the API key in place of the signing key:
69+
70+
.. admonition:: alertmanager.yaml
71+
72+
.. code-block:: yaml
73+
74+
receivers:
75+
- name: 'robusta'
76+
webhook_configs:
77+
- url: 'https://api.robusta.dev/integrations/generic/alertmanager'
78+
http_config:
79+
authorization:
80+
# Replace <ACCOUNT_ID> with your Robusta account ID
81+
# Replace <API_KEY> with the API key you created above
82+
credentials: '<ACCOUNT_ID> <API_KEY>'
83+
send_resolved: true
84+
85+
route:
86+
routes:
87+
- receiver: 'robusta'
88+
group_by: [ '...' ]
89+
group_wait: 1s
90+
group_interval: 1s
91+
matchers:
92+
- severity =~ ".*"
93+
repeat_interval: 4h
94+
continue: true
95+
96+
.. include:: ./_testing_integration.rst
97+
5298
.. include:: ./_pull_integration.rst
5399

54100
Filtering Prometheus Queries by Cluster

0 commit comments

Comments
 (0)