Add mqtt_statsd to firehose config

To get metrics on MQTT usage into graphite/grafana this commit adds
running mqtt_statsd on firehose

Change-Id: I90bb2c4fc7e409e9af24ca7cec7ad9d7926739e9
Depends-On: I28058bf6eac2354e3ceba0011464509ed6bdd869
This commit is contained in:
Matthew Treinish 2017-04-05 00:21:50 -04:00
parent c693c0a5e8
commit eb4c825215
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
3 changed files with 10 additions and 0 deletions

View File

@ -226,6 +226,7 @@ node 'puppetdb01.openstack.org' {
# Node-OS: trusty
node 'graphite.openstack.org' {
$statsd_hosts = ['git.openstack.org',
'firehose01.openstack.org',
'logstash.openstack.org',
'nodepool.openstack.org',
'nl01.openstack.org',
@ -552,6 +553,7 @@ node /^firehose\d+\.openstack\.org$/ {
imap_hostname => hiera('lpmqtt_imap_server'),
imap_username => hiera('lpmqtt_imap_username'),
imap_password => hiera('lpmqtt_imap_password'),
statsd_host => 'graphite.openstack.org',
}
}

View File

@ -129,6 +129,7 @@ INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-mailman"]="origi
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-mediawiki"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-meetbot"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-mosquitto"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-mqtt_statsd"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-mysql_backup"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-nodepool"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-odsreg"]="origin/master"

View File

@ -26,6 +26,7 @@ class openstack_project::firehose (
$mqtt_hostname = 'firehose.openstack.org',
$mqtt_password,
$mqtt_username = 'infra',
$statsd_host,
$ca_file,
$cert_file,
$key_file,
@ -99,4 +100,10 @@ class openstack_project::firehose (
imap_use_ssl => false,
imap_delete_old => true,
}
include mqtt_statsd
class {'mqtt_statsd::server':
mqtt_hostname => $mqtt_hostname,
statsd_hostname => $statsd_host,
}
}