Clean metrics related environments

This patch groups all metrics related environment files
to single directory and changes it's name to make more
sense.It also adds environment file for enabling RabbitMQ
monitoring.

Co-Authored-By: Nagasai Vinaykumar Kapalavai <vkapalav@redhat.com>
Change-Id: I8419ef82e79d1e26c7b1fc267feadf909a7978d9
Depends-On: I248859bf0e4b70e3a057e96b5fb74be64f4008ed
(cherry picked from commit 492816a166)
This commit is contained in:
Martin Magr 2019-03-20 17:24:08 +01:00 committed by Nagasai Vinaykumar Kapalavai
parent 97cf4dea1d
commit 8d4f109a6a
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# This environment file serves for enabling python-collect-rabbitmq and configuring
# it to monitor overcloud RabbitMQ instance
parameter_defaults:
ControllerExtraConfig:
tripleo::profile::base::metrics::collectd::python_read_plugins:
- python-collectd-rabbitmq
collectd::plugin::python::modules:
collectd_rabbitmq_monitoring:
config:
- host: "%{hiera('rabbitmq::interface')}"
port: "%{hiera('rabbitmq::port')}"
username: "%{hiera('rabbitmq::default_user')}"
password: "%{hiera('rabbitmq::default_pass')}"

View File

@ -0,0 +1,28 @@
## This environment servers the purpose of enabling collectd to send metrics
## through mesh of QPID dispatch routers. Each overcloud node will have one local
## qdrouterd service running and collectd will send data to it.
resource_registry:
OS::TripleO::Services::Collectd: ../../docker/services/metrics/collectd.yaml
OS::TripleO::Services::MetricsQdr: ../../docker/services/metrics/qdr.yaml
parameter_defaults:
CeilometerQdrPublish: true
CollectdConnectionType: amqp1
CollectdAmqpInstances:
notify:
notify: true
format: JSON
presettle: true
telemetry:
format: JSON
presettle: false
#MetricsQdrConnectors:
# - host: IP1
# port: 1234
# role: inter-router
# - host: IP2
# port: 5678
# role: inter-router