From 518d0d26000a77ccbbe6f73bc315171a5c7edbc7 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Fri, 21 Apr 2017 15:28:16 -0400 Subject: [PATCH] Update subscribed mosquitto metrics This commit updates the mqtt_statsd yaml to change our metrics for messages from totals to sampled counts which should make our graphing more useful. This also adds dropped messages to the stats, while I don't expect we're dropping any it'll be good to track it too. Change-Id: Icaaafb23d83140ed0b97d8690e9e37268289794f --- templates/mqtt_statsd.yaml.erb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/mqtt_statsd.yaml.erb b/templates/mqtt_statsd.yaml.erb index 4446fb2..b1ea6e3 100644 --- a/templates/mqtt_statsd.yaml.erb +++ b/templates/mqtt_statsd.yaml.erb @@ -10,13 +10,15 @@ topics: statsd_topic: heap_size - mqtt_topic: $SYS/broker/clients/total statsd_topic: total_clients - - mqtt_topic: $SYS/broker/bytes/received + - mqtt_topic: $SYS/broker/load/bytes/received/1min statsd_topic: bytes_recieved - - mqtt_topic: $SYS/broker/bytes/sent + - mqtt_topic: $SYS/broker/load/bytes/sent/1min statsd_topic: bytes_sent - mqtt_topic: $SYS/broker/subscriptions/count statsd_topic: subscription_count - - mqtt_topic: $SYS/broker/messages/received + - mqtt_topic: $SYS/broker/load/messages/received/1min statsd_topic: messages_recieved - - mqtt_topic: $SYS/broker/messages/sent + - mqtt_topic: $SYS/broker/load/messages/sent/1min statsd_topic: messages_sent + - mqtt_topic: $SYS/broker/load/publish/dropped/1min + statsd_topic: messages_dropped