Alertmanager webhook configuration reference
You can configure Alertmanager webhook receivers to forward Red Hat Edge Manager alerts to Red Hat Ansible Automation Platform Event-Driven Ansible (EDA) or other webhook-based endpoints. The configuration is stored in an Alertmanager configuration Secret in your deployment namespace.
Webhook receiver fields Copy linkLink copied!
The following table describes the fields available in the Alertmanager webhook_configs section.
| Field | Type | Required | Description |
|---|---|---|---|
|
|
String |
Yes |
The HTTP or HTTPS endpoint URL of the webhook receiver. For EDA Controller, use the format http://<eda_controller_host>:<port>/endpoint, where <port> corresponds to the port configured in the ansible.eda.alertmanager source plugin (default 5000). Use https:// with a tls_config section when the EDA Controller is not on a trusted internal network. |
|
|
Boolean |
No |
Whether to send notifications when alerts are resolved. Default is |
|
|
Integer |
No |
Maximum number of alerts per webhook message. Default is |
HTTP authentication options Copy linkLink copied!
You can configure authentication for the webhook endpoint by using the http_config sub-section within webhook_configs.
| Field | Description |
|---|---|
|
|
Basic HTTP authentication credentials for the webhook endpoint. |
|
|
Bearer token authentication. Use |
|
|
Path to the CA certificate file for verifying the webhook endpoint TLS certificate. |
|
|
Client certificate and key for mutual TLS (mTLS) authentication. |
|
|
Skip TLS verification of the webhook endpoint certificate. Do not use this option in production environments. |
Red Hat Edge Manager alert labels Copy linkLink copied!
Red Hat Edge Manager Prometheus rules attach the following labels to alerts. You can use these labels to build Alertmanager routing rules that match specific alert conditions, or to filter alerts in your EDA rulebooks.
| Label | Description |
|---|---|
|
|
The name of the alert rule that fired. |
|
|
Alert severity level. Valid values are |
|
|
The namespace where Red Hat Edge Manager is deployed. |
|
|
The Red Hat Edge Manager service component that generated the metric. |
|
|
The identifier of the affected device. Present only for device-specific alerts. |
|
|
The name of the fleet. Present only for fleet-specific alerts. |
Alert event fields Copy linkLink copied!
The following table describes the top-level fields available in each event.alert object that the ansible.eda.alertmanager plugin produces.
| Field | Description |
|---|---|
|
|
Current alert state. Value is |
|
|
RFC 3339 timestamp indicating when the alert started firing. |
|
|
Human-readable description of the alert condition, as defined in the Prometheus alert rule. |
|
|
All Prometheus labels attached to the alert. See the Red Hat Edge Manager alert labels table above. |
Network requirements for Alertmanager access Copy linkLink copied!
The following table lists the ports and paths through which you can reach the Alertmanager API. The access method you use depends on your deployment topology and network policies.
| Access method | Port | Path | Description |
|---|---|---|---|
|
Gateway proxy |
443 |
|
Routed through the Red Hat Edge Manager standalone gateway to |
|
Integration proxy |
8443 |
|
Direct access through |
|
Conventional |
9093 |
|
Direct Alertmanager port. Use this method when external monitoring systems connect to Alertmanager without a proxy. |
For a complete list of Red Hat Edge Manager network ports, see the Additional resources section.
Example Alertmanager configuration Secret Copy linkLink copied!
The following example shows a minimal Alertmanager configuration stored in a Kubernetes Secret.
This configuration routes critical and warning alerts to a webhook receiver while retaining a default receiver for all other alerts.
Replace <project_name> with the namespace where Red Hat Edge Manager is deployed, and replace <eda_controller_host> with the hostname of your EDA Controller instance:
apiVersion: v1
kind: Secret
metadata:
name: flightctl-alertmanager-config
namespace: <project_name>
stringData:
alertmanager.yaml: |
route:
receiver: default
routes:
- receiver: eda-webhook
matchers:
- severity=~"critical|warning"
continue: true
receivers:
- name: default
- name: eda-webhook
webhook_configs:
- url: "http://<eda_controller_host>:5000/endpoint"
send_resolved: true
Where:
-
namespace - The Red Hat OpenShift Container Platform project where Red Hat Edge Manager is deployed.
-
receiver: default - The fallback receiver for alerts that do not match any route.
-
matchers - A list of label matchers that select which alerts are forwarded to the webhook. This example matches alerts with a
severitylabel ofcriticalorwarning. -
continue: true - Continues evaluating subsequent routes after a match, so that the default receiver also receives a copy of matching alerts.
-
url - The webhook endpoint URL. Replace
<eda_controller_host>with your EDA Controller hostname and adjust the port and path as needed. -
send_resolved - When set to
true, the receiver also sends a notification when a previously firing alert is resolved.