Add cAdvisor image for Prometheus monitoring.
cAdvisor is a performance monitoring tool for containers which can be used in conjunction with Prometheus. Change-Id: Ib329fa30e8ab1c969b3b21bcbccf26bd562b9b83
This commit is contained in:
parent
dfe78ffc96
commit
3dc8302717
16
docker/prometheus/prometheus-cadvisor/Dockerfile.j2
Normal file
16
docker/prometheus/prometheus-cadvisor/Dockerfile.j2
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
FROM {{ namespace }}/{{ image_prefix }}prometheus-base:{{ tag }}
|
||||||
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
||||||
|
|
||||||
|
{% block prometheus_cadvisor_header %}{% endblock %}
|
||||||
|
|
||||||
|
{% block prometheus_cadvisor_repository_version %}
|
||||||
|
ENV prometheus_cadvisor_version=0.27.4
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block prometheus_cadvisor_install %}
|
||||||
|
RUN curl -ssL -o /opt/cadvisor https://github.com/google/cadvisor/releases/download/v${prometheus_cadvisor_version}/cadvisor \
|
||||||
|
&& chmod 755 /opt/cadvisor
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block prometheus_cadvisor_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Added a container image for cAdvisor, to be used with Prometheus
|
||||||
|
monitoring to gather resource utilization statistics of containers.
|
Loading…
Reference in New Issue
Block a user