Skip to content

Commit bae04f6

Browse files
committed
feat: add alertmanager-0.28.1
1 parent 7ab261a commit bae04f6

File tree

4 files changed

+51
-2
lines changed

4 files changed

+51
-2
lines changed

doc/source/configuration/monitoring.rst

+14-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ on the overcloud hosts:
8181
SMART reporting should now be enabled along with a Prometheus alert for
8282
unhealthy disks and a Grafana dashboard called ``Hardware Overview``.
8383

84-
Alertmanager and Slack
85-
======================
84+
Alertmanager, Slack and Microsoft Teams
85+
=======================================
8686

8787
StackHPC Kayobe configuration comes bundled with an array of alerts but does not
8888
enable any receivers for notifications by default. Various receivers can be
@@ -119,6 +119,18 @@ available `here <https://awesome-prometheus-alerts.grep.to/>`__. They simply
119119
need to be added to one of the ``*.rules`` files in the prometheus configuration
120120
directory.
121121

122+
If however you are using Microsoft Teams instead of Slack, you can use Prometheus
123+
Alertmanager's built-in support for the new message format based on Power Automate flows.
124+
You will need an incoming webhook URL for your Teams channel.
125+
This can be done by following `these instructions <https://support.microsoft.com/en-gb/office/create-incoming-webhooks-with-workflows-for-microsoft-teams-8ae491c7-0394-4861-ba59-055e33f75498>`__.
126+
To set up a receiver, create a ``prometheus-alertmanager.yml`` file under
127+
``etc/kayobe/kolla/config/prometheus/``.
128+
An example config is stored in this directory known as ``prometheus-alertmanager.msteamvs2.yml.example``.
129+
The example configuration uses two Slack channels.
130+
One channel receives all alerts while the other only receives alerts tagged as critical.
131+
Feel free to modify the example configuration to suit your needs.
132+
133+
122134
Ceph Monitoring
123135
===============
124136

etc/kayobe/kolla-image-tags.yml

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ kolla_image_tags:
4949
ovn:
5050
rocky-9: 2024.1-rocky-9-20250219T113722
5151
ubuntu-jammy: 2024.1-ubuntu-jammy-20250219T113722
52+
prometheus_alertmanager:
53+
rocky-9: 2024.1-rocky-9-20250422T103147
54+
ubuntu-jammy: 2024.1-ubuntu-jammy-20250422T103147
5255
skyline_apiserver:
5356
rocky-9: 2024.1-rocky-9-20250408T133253
5457
ubuntu-jammy: 2024.1-ubuntu-jammy-20250408T133253
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
global:
3+
resolve_timeout: 5m
4+
smtp_require_tls: true
5+
6+
route:
7+
receiver: 'msteamsv2-notifications'
8+
group_by: [alertname]
9+
group_wait: 30s
10+
group_interval: 5m
11+
repeat_interval: 4h
12+
13+
routes:
14+
- matchers:
15+
- severity=~"critical|alert"
16+
receiver: 'msteamvs2-critical-notifications'
17+
18+
receivers:
19+
- name: 'msteamsv2-notifications'
20+
msteamsv2_configs:
21+
- webhook_url: '{{ secrets_msteams_notification_channel_url }}'
22+
send_resolved: true
23+
- name: 'msteamsv2-critical-notifications'
24+
msteamsv2_configs:
25+
- webhook_url: '{{ secrets_msteams_notification_critical_channel_url }}'
26+
send_resolved: true
27+
28+
templates:
29+
- '/etc/prometheus/*.tmpl'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
Prometheus Alertmanager has been updated to ``0.28.1``. This release
5+
includes support for Microsoft Teams notifications.

0 commit comments

Comments
 (0)