Add prometheus-msteams image
This can be used to forward Prometheus Alertmanager notifications to Microsoft Teams. Change-Id: I57ebdf734c4bf38045ca8f837dc7066cdeb16131
This commit is contained in:
parent
7652ef325e
commit
a7e3c80ae6
24
docker/prometheus/prometheus-msteams/Dockerfile.j2
Normal file
24
docker/prometheus/prometheus-msteams/Dockerfile.j2
Normal file
@ -0,0 +1,24 @@
|
||||
FROM {{ namespace }}/{{ infra_image_prefix }}prometheus-base:{{ tag }}
|
||||
{% block labels %}
|
||||
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
||||
{% endblock %}
|
||||
|
||||
{% block prometheus_msteams_header %}{% endblock %}
|
||||
|
||||
{% block prometheus_msteams_repository_version %}
|
||||
ARG prometheus_msteams_version=1.5.0
|
||||
ARG prometheus_msteams_sha256sum=74d1bedb12f6ec09fb65ddeb63328f691a9b2a56c92d7682ca152c867fc7c7a0
|
||||
{% endblock %}
|
||||
|
||||
{% block prometheus_msteams_install %}
|
||||
RUN curl -o /tmp/prometheus-msteams https://github.com/prometheus-msteams/prometheus-msteams/releases/download/v${prometheus_msteams_version}/prometheus-msteams-linux-{{debian_arch}} \
|
||||
&& echo "${prometheus_msteams_sha256sum} /tmp/prometheus-msteams" | sha256sum -c \
|
||||
&& mv /tmp/prometheus-msteams /opt \
|
||||
&& chmod 0755 /opt/prometheus-msteams \
|
||||
&& mkdir -p /etc/msteams
|
||||
{% endblock %}
|
||||
|
||||
{% block prometheus_msteams_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
|
||||
USER prometheus
|
@ -81,6 +81,7 @@ LOG = utils.make_a_logger()
|
||||
UNBUILDABLE_IMAGES = {
|
||||
'aarch64': {
|
||||
"bifrost-base", # someone need to get upstream working first
|
||||
"prometheus-msteams", # no aarch64 binary
|
||||
"prometheus-mtail", # no aarch64 binary
|
||||
"skydive-base", # no aarch64 binary
|
||||
},
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Adds ``prometheus-msteams`` image, which can be used to forward Prometheus
|
||||
Alertmanager notifications to Microsoft Teams.
|
Loading…
Reference in New Issue
Block a user