Add prometheus-memcached-exporter image.

This commit adds the prometheus-memcached-exporter [0]
image under the prometheus namespace.

[0] https://github.com/prometheus/memcached_exporter

Change-Id: Iec9fc4ac657b97198977b4edd7a61189e97094b2
Signed-off-by: Jorge Niedbalski <jorge.niedbalski@linaro.org>
This commit is contained in:
Jorge Niedbalski 2018-05-02 16:52:18 -03:00
parent e9f6e4cf8c
commit 1b1779638c
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,20 @@
FROM {{ namespace }}/{{ image_prefix }}prometheus-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block prometheus_memcached_exporter_header %}{% endblock %}
{% block prometheus_memcached_exporter_repository_version %}
ENV memcached_exporter_version=0.4.1
{% endblock %}
{% block prometheus_memcached_exporter_install %}
RUN curl -sSL -o /tmp/memcached_exporter.tar.gz https://github.com/prometheus/memcached_exporter/releases/download/v${memcached_exporter_version}/memcached_exporter-${memcached_exporter_version}.linux-${prometheus_arch}.tar.gz \
&& tar xvf /tmp/memcached_exporter.tar.gz -C /opt/ \
&& rm -f /tmp/memcached_exporter.tar.gz \
&& ln -s /opt/memcached_exporter* /opt/memcached_exporter
{% endblock %}
{% block prometheus_memcached_exporter_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER prometheus

View File

@ -0,0 +1,4 @@
---
features:
- Container image for the prometheus memcached exporter under
the docker/prometheus/ directory.