Merge "Add prometheus-msteams image"

This commit is contained in:
Zuul 2022-03-10 13:04:49 +00:00 committed by Gerrit Code Review
commit 5bb6489922
3 changed files with 30 additions and 0 deletions

View 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

View File

@ -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
},

View File

@ -0,0 +1,5 @@
---
features:
- |
Adds ``prometheus-msteams`` image, which can be used to forward Prometheus
Alertmanager notifications to Microsoft Teams.