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:
parent
e9f6e4cf8c
commit
1b1779638c
@ -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
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Container image for the prometheus memcached exporter under
|
||||||
|
the docker/prometheus/ directory.
|
Loading…
Reference in New Issue
Block a user