[prometheus] Add blackbox exporter.
This change adds a new exporter image, the blackbox exporter from the prometheus project [0] that allows external monitoring of resources. [0] https://github.com/prometheus/blackbox_exporter Change-Id: I05ab750d2598ac02df06ee4528a3de12b216e895 Signed-off-by: Jorge Niedbalski <jorge.niedbalski@linaro.org>
This commit is contained in:
parent
1e2db34c7f
commit
cc7ab30b82
20
docker/prometheus/prometheus-blackbox-exporter/Dockerfile.j2
Normal file
20
docker/prometheus/prometheus-blackbox-exporter/Dockerfile.j2
Normal file
@ -0,0 +1,20 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}prometheus-base:{{ tag }}
|
||||
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
||||
|
||||
{% block prometheus_blackbox_exporter_header %}{% endblock %}
|
||||
|
||||
{% block prometheus_blackbox_exporter_repository_version %}
|
||||
ENV blackbox_exporter_version=0.12.0
|
||||
{% endblock %}
|
||||
|
||||
{% block prometheus_blackbox_exporter_install %}
|
||||
RUN curl -sSL -o /tmp/blackbox_exporter.tar.gz https://github.com/prometheus/blackbox_exporter/releases/download/v${blackbox_exporter_version}/blackbox_exporter-${blackbox_exporter_version}.linux-${prometheus_arch}.tar.gz \
|
||||
&& tar xvf /tmp/blackbox_exporter.tar.gz -C /opt/ \
|
||||
&& rm -f /tmp/blackbox_exporter.tar.gz \
|
||||
&& ln -s /opt/blackbox_exporter* /opt/blackbox_exporter
|
||||
{% endblock %}
|
||||
|
||||
{% block prometheus_blackbox_exporter_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
|
||||
USER prometheus
|
Loading…
Reference in New Issue
Block a user