diff options
| author | Pierre Riteau <pierre@stackhpc.com> | 2021-10-08 11:59:18 +0200 |
|---|---|---|
| committer | Pierre Riteau <pierre@stackhpc.com> | 2021-10-08 11:59:18 +0200 |
| commit | a7e3c80ae67c211c008315331aeb252ace65d404 (patch) | |
| tree | 450800339757d19ae4460bbed621d5b5d6f3d951 /docker/prometheus | |
| parent | 7652ef325e0e84fe92ccf104bfe751a4d3542227 (diff) | |
| download | kolla-a7e3c80ae67c211c008315331aeb252ace65d404.tar.gz kolla-a7e3c80ae67c211c008315331aeb252ace65d404.zip | |
Add prometheus-msteams image
This can be used to forward Prometheus Alertmanager notifications to
Microsoft Teams.
Change-Id: I57ebdf734c4bf38045ca8f837dc7066cdeb16131
Diffstat (limited to 'docker/prometheus')
| -rw-r--r-- | docker/prometheus/prometheus-msteams/Dockerfile.j2 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docker/prometheus/prometheus-msteams/Dockerfile.j2 b/docker/prometheus/prometheus-msteams/Dockerfile.j2 new file mode 100644 index 000000000..6222dab39 --- /dev/null +++ b/docker/prometheus/prometheus-msteams/Dockerfile.j2 @@ -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 |
