Add Monasca Agent container

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
This commit is contained in:
Doug Szumski 2018-07-26 12:05:40 +01:00
parent d7cd35ff9a
commit e4e8ca3e1d
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,31 @@
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

View File

@ -506,6 +506,10 @@ SOURCES = {
'type': 'url',
'location': ('$tarballs_base/tacker/'
'tacker-master.tar.gz')},
'monasca-agent': {
'type': 'url',
'location': ('$tarballs_base/monasca-agent/'
'monasca-agent-master.tar.gz')},
'monasca-api': {
'type': 'url',
'location': ('$tarballs_base/monasca-api/'