diff options
| author | zhubingbing <zhubingbing10@gmail.com> | 2019-01-03 18:57:16 +0800 |
|---|---|---|
| committer | zhubingbing <zhubingbing10@gmail.com> | 2019-01-04 15:46:22 +0800 |
| commit | 411348335456c13b855f973316b34e47f62f7b5e (patch) | |
| tree | bb83d584b70a06db3b3e45c3fd99b2c839223a62 /docker/macros.j2 | |
| parent | f01b950eba7e101aacf1e00f57a49f237f9b1fde (diff) | |
| download | kolla-411348335456c13b855f973316b34e47f62f7b5e.tar.gz kolla-411348335456c13b855f973316b34e47f62f7b5e.zip | |
Add support rabbitmq promethues plugin
Change-Id: I1b2b3d6708bfcd58864e26e6c1fc618fb421e9a2
Diffstat (limited to 'docker/macros.j2')
| -rw-r--r-- | docker/macros.j2 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2 index aa9c097cb..111572140 100644 --- a/docker/macros.j2 +++ b/docker/macros.j2 @@ -99,3 +99,12 @@ RUN apt-get update \ {%- endif %} {%- endif %} {%- endmacro %} + +{% macro install_rabbitmq_plugins(plugins, version) -%} + ENV PLUGINS_DIR /usr/lib/rabbitmq/plugins +{% if plugins is defined and plugins|length > 0 -%} + {% for item in plugins %} + RUN curl -L -o ${PLUGINS_DIR}/{{ item }} https://github.com/deadtrickster/prometheus_rabbitmq_exporter/releases/download/{{ version }}/{{ item }} + {% endfor %} +{%- endif %} +{%- endmacro %} |
