Skip to content

Commit 447f24f

Browse files
committed
Update: alertmanager-mattermost in k8s document
Signed-off-by: Ali Mehraji <a.mehraji75@gmail.com>
1 parent d61072a commit 447f24f

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

posts/alertmanager-mattermost-k8s-prometheus.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ id: 3289115
77
date: '2026-02-26T20:18:46Z'
88
---
99

10-
### Why
10+
### Overview
1111

12-
Since Prometheus-Stack Alertmanager doesn’t include Mattermost as a built-in receiver, we will integrate it using a webhook via creating a Python relay application that accepts Alertmanager webhook notifications, formats them into a Mattermost-compatible payload, and sends them to a Mattermost incoming webhook URL.
12+
Since `Prometheus-Stack` `Alertmanager` doesn’t include `Mattermost` as a built-in receiver, we will integrate it using a `webhook` via creating a Python relay application that accepts `Alertmanager` webhook notifications, formats them into a Mattermost-compatible payload, and sends them to a Mattermost incoming webhook URL.
1313

1414
Then we will deploy this relay inside Kubernetes using a Deployment and expose it with a Service so Alertmanager can reliably reach it.
1515

@@ -22,7 +22,6 @@ Finally, we will configure Alertmanager using an AlertmanagerConfig resource to
2222
- Alertmanager sends webhook notifications to the Python Relay Service.
2323
- The relay formats the alert payload.
2424
- The relay forwards the formatted message to Mattermost Incoming Webhook.
25-
- Alerts appear in the designated Mattermost channel.
2625

2726
### Steps
2827

@@ -53,6 +52,12 @@ Finally, we will configure Alertmanager using an AlertmanagerConfig resource to
5352
5453
```
5554

55+
And then do `helm upgrade` to prometheus operator selects the alertmanagerConfig and route alerts.
56+
57+
```bash
58+
helm upgrade --install prometheus prometheus-community/kube-prometheus-stack -f values.yaml
59+
```
60+
5661
[mattermost-incoming-webhook]:https://docs.mattermost.com/integrations-guide/incoming-webhooks.html
5762
[python-relay-app]: https://github.com/cod3mas0n/k8s-alertmanager-mattermost/blob/main/src/app.py
5863
[dockerfile]: https://github.com/cod3mas0n/k8s-alertmanager-mattermost/blob/main/src/Dockerfile

0 commit comments

Comments
 (0)