Skip to content

Commit b9beaf0

Browse files
priteaumarkgoddard
authored andcommitted
Add prometheus-msteams image
This can be used to forward Prometheus Alertmanager notifications to Microsoft Teams. Change-Id: I57ebdf734c4bf38045ca8f837dc7066cdeb16131 (cherry picked from commit a7e3c80)
1 parent 4ffed74 commit b9beaf0

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM {{ namespace }}/{{ infra_image_prefix }}prometheus-base:{{ tag }}
2+
{% block labels %}
3+
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
4+
{% endblock %}
5+
6+
{% block prometheus_msteams_header %}{% endblock %}
7+
8+
{% block prometheus_msteams_repository_version %}
9+
ARG prometheus_msteams_version=1.5.0
10+
ARG prometheus_msteams_sha256sum=74d1bedb12f6ec09fb65ddeb63328f691a9b2a56c92d7682ca152c867fc7c7a0
11+
{% endblock %}
12+
13+
{% block prometheus_msteams_install %}
14+
RUN curl -o /tmp/prometheus-msteams https://github.com/prometheus-msteams/prometheus-msteams/releases/download/v${prometheus_msteams_version}/prometheus-msteams-linux-{{debian_arch}} \
15+
&& echo "${prometheus_msteams_sha256sum} /tmp/prometheus-msteams" | sha256sum -c \
16+
&& mv /tmp/prometheus-msteams /opt \
17+
&& chmod 0755 /opt/prometheus-msteams \
18+
&& mkdir -p /etc/msteams
19+
{% endblock %}
20+
21+
{% block prometheus_msteams_footer %}{% endblock %}
22+
{% block footer %}{% endblock %}
23+
24+
USER prometheus

kolla/image/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class Status(Enum):
8181
UNBUILDABLE_IMAGES = {
8282
'aarch64': {
8383
"bifrost-base", # someone need to get upstream working first
84+
"prometheus-msteams", # no aarch64 binary
8485
"prometheus-mtail", # no aarch64 binary
8586
"skydive-base", # no aarch64 binary
8687
},
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
Adds ``prometheus-msteams`` image, which can be used to forward Prometheus
5+
Alertmanager notifications to Microsoft Teams.

0 commit comments

Comments
 (0)