Browse Source

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
tags/7.0.0.0rc1
Doug Szumski 10 months ago
parent
commit
e4e8ca3e1d
2 changed files with 35 additions and 0 deletions
  1. 31
    0
      docker/monasca/monasca-agent/Dockerfile.j2
  2. 4
    0
      kolla/common/config.py

+ 31
- 0
docker/monasca/monasca-agent/Dockerfile.j2 View File

@@ -0,0 +1,31 @@
1
+FROM {{ namespace }}/{{ image_prefix }}monasca-base:{{ tag }}
2
+LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
3
+
4
+{% block monasca_agent_header %}{% endblock %}
5
+
6
+{% import "macros.j2" as macros with context %}
7
+
8
+{% if install_type == 'binary' %}
9
+
10
+RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
11
+    && /bin/false
12
+
13
+{% elif install_type == 'source' %}
14
+
15
+ADD monasca-agent-archive /monasca-agent-source
16
+
17
+{% set monasca_agent_pip_packages = [
18
+    '/monasca-agent'
19
+] %}
20
+
21
+RUN ln -s monasca-agent-source/* monasca-agent \
22
+    && {{ macros.install_pip(monasca_agent_pip_packages | customizable("pip_packages")) }}
23
+
24
+{% endif %}
25
+
26
+{% block monasca_agent_footer %}{% endblock %}
27
+
28
+{% block footer %}{% endblock %}
29
+
30
+USER monasca
31
+

+ 4
- 0
kolla/common/config.py View File

@@ -506,6 +506,10 @@ SOURCES = {
506 506
         'type': 'url',
507 507
         'location': ('$tarballs_base/tacker/'
508 508
                      'tacker-master.tar.gz')},
509
+    'monasca-agent': {
510
+        'type': 'url',
511
+        'location': ('$tarballs_base/monasca-agent/'
512
+                     'monasca-agent-master.tar.gz')},
509 513
     'monasca-api': {
510 514
         'type': 'url',
511 515
         'location': ('$tarballs_base/monasca-api/'

Loading…
Cancel
Save