You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: prometheus/README.md
+78-3Lines changed: 78 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Note: Bucket data for a given `<HISTOGRAM_METRIC_NAME>` Prometheus histogram met
56
56
57
57
### Events
58
58
59
-
Prometheus Alertmanager alerts are automatically sent to your Datadog event stream following the webhook configuration.
59
+
Prometheus Alertmanager alerts are automatically sent to your Datadog event stream following the webhook configuration. See the [Prometheus Alertmanager](#prometheus-alertmanager) section for setup instructions.
60
60
61
61
### Service Checks
62
62
@@ -66,8 +66,75 @@ The Prometheus check does not include any service checks.
66
66
Send Prometheus Alertmanager alerts in the event stream. Natively, Alertmanager sends all alerts simultaneously to the configured webhook. To see alerts in Datadog, you must configure your instance of Alertmanager to send alerts one at a time. You can add a group-by parameter under `route` to have alerts grouped by the actual name of the alert rule.
67
67
68
68
### Setup
69
+
70
+
<!-- xxx tabs xxx -->
71
+
<!-- xxx tab "V2 (preferred)" xxx -->
72
+
69
73
1. Edit the Alertmanager configuration file, `alertmanager.yml`, to include the following:
The <code>group_by</code> parameter determines how alerts are grouped together when sent to Datadog. Alerts sharing the same values for the specified labels will be grouped into a single notification. For more details on routing configuration, see the <ahref="https://prometheus.io/docs/alerting/latest/configuration/">Prometheus Alertmanager documentation</a>.
91
+
</div>
92
+
93
+
**Note**: This endpoint accepts only one event in the payload at a time.
94
+
95
+
2. (Optional) Use matchers to redirect specific alerts to different receivers. Alertmanager supports matchers to route notifications based on any label. For more information on matcher syntax, see the [Alertmanager matcher documentation][13].
96
+
97
+
The V2 webhook supports [additional query parameters][11]. For example, use the `oncall_team` parameter to integrate with the [Datadog On-Call][12] product and redirect pages to different teams:
Setting <code>send_resolved: true</code> (the default value) enables Alertmanager to send notifications when alerts are resolved in Prometheus. This is particularly important when using the <code>oncall_team</code> parameter to ensure pages are marked as resolved. Note that resolved notifications may take up to the next <code>group_interval</code> to be sent.
124
+
</div>
125
+
126
+
3. Restart the Prometheus and Alertmanager services.
0 commit comments