e4e8ca3e1d
The Monasca Agent consists of 3 processes. The collector, which collects system level metrics from a host, a statsd server, which is used to receive application specific statsd metrics and a forwarder service which batches metrics and sends them to the Monasca API at pre-defined time intervals. Partially-Implements: blueprint monasca-containers Change-Id: Ia446ca0a6b932c2429d727b63e363b4e27307304
32 lines
777 B
Django/Jinja
32 lines
777 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}monasca-base:{{ tag }}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
|
|
{% block monasca_agent_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
|
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|
&& /bin/false
|
|
|
|
{% elif install_type == 'source' %}
|
|
|
|
ADD monasca-agent-archive /monasca-agent-source
|
|
|
|
{% set monasca_agent_pip_packages = [
|
|
'/monasca-agent'
|
|
] %}
|
|
|
|
RUN ln -s monasca-agent-source/* monasca-agent \
|
|
&& {{ macros.install_pip(monasca_agent_pip_packages | customizable("pip_packages")) }}
|
|
|
|
{% endif %}
|
|
|
|
{% block monasca_agent_footer %}{% endblock %}
|
|
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER monasca
|
|
|