kolla/docker/prometheus/prometheus-mysqld-exporter/Dockerfile.j2
Mathias Ewald cbbceb0ad3 Add prometheus and related containers
Add container for prometheus, mysqld_exporter, node_exporter and
haproxy_exporter

Change-Id: I6e4eb0391380e594b708a67365e240d3eeafd88b
2017-07-24 13:32:17 +00:00

21 lines
822 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}prometheus-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block mysqld_exporter_header %}{% endblock %}
{% block mysqld_exporter_repository_version %}
ENV mysqld_exporter_version=0.10.0
{% endblock %}
{% block mysqld_exporter_install %}
RUN curl -ssL -o /tmp/mysqld_exporter.tar.gz https://github.com/prometheus/mysqld_exporter/releases/download/v${mysqld_exporter_version}/mysqld_exporter-${mysqld_exporter_version}.linux-${prometheus_arch}.tar.gz \
&& tar xvf /tmp/mysqld_exporter.tar.gz -C /opt/ \
&& rm -f /tmp/mysqld_exporter.tar.gz \
&& ln -s /opt/mysqld_exporter* /opt/mysqld_exporter
{% endblock %}
{% block mysqld_exporter_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER prometheus