diff --git a/docker/prometheus/prometheus-memcached-exporter/Dockerfile.j2 b/docker/prometheus/prometheus-memcached-exporter/Dockerfile.j2 new file mode 100644 index 0000000000..65fe5d0b07 --- /dev/null +++ b/docker/prometheus/prometheus-memcached-exporter/Dockerfile.j2 @@ -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 diff --git a/releasenotes/notes/prometheus-memcached-exporter-3ca7f701a5069509.yaml b/releasenotes/notes/prometheus-memcached-exporter-3ca7f701a5069509.yaml new file mode 100644 index 0000000000..b486be3c19 --- /dev/null +++ b/releasenotes/notes/prometheus-memcached-exporter-3ca7f701a5069509.yaml @@ -0,0 +1,4 @@ +--- +features: + - Container image for the prometheus memcached exporter under + the docker/prometheus/ directory.