From cee76fdcf13b07a12f45d65fb31c4a0157d96694 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 20 Apr 2017 15:21:09 -0400 Subject: [PATCH] Add mosquitto grafana dashboard Now that we have stats reporting into statsd from the mosquitto broker lets add a grafana dashboard to track that data. This is a first pass at the dashboard I expect we'll have to update and refine it before we can get useful metrics from it. Change-Id: I1c4bc8fc8df544d95ec3711a065d88ec17df4078 --- grafana/mosquitto.yaml | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 grafana/mosquitto.yaml diff --git a/grafana/mosquitto.yaml b/grafana/mosquitto.yaml new file mode 100644 index 0000000000..f2821a8fdb --- /dev/null +++ b/grafana/mosquitto.yaml @@ -0,0 +1,60 @@ +dashboard: + title: Mosquitto Status + rows: + - title: Description + height: 100px + panels: + - title: Description + content: | + **This dashboard is managed by [Grafyaml](http://docs.openstack.org/infra/system-config/grafyaml.html).** + + If you would like to make changes to this dashboard, please see the grafana directory in [project-config](https://git.openstack.org/cgit/openstack-infra/project-config/tree/grafana/mosquitto.yaml). + type: text + - title: Client Information + height: 150px + panels: + - title: Total Clients + span: 2 + sparkline: + full: true + show: true + targets: + - target: stats.gauges.mosquitto.total_clients + type: singlestat + valueName: current + - title: Subscription Count + span: 2 + sparkline: + full: true + show: true + targets: + - target: stats.gauges.mosquitto.subscription_count + type: singlestat + valueName: current + showTitle: true + - title: Connection Information + height: 250px + panels: + - title: Message Statistics + span: 4 + stack: true + tooltip: + value_type: individual + targets: + - target: alias(stats.gauges.mosquitto.messages_sent, 'Messages Sent') + - target: alias(stats.gauges.mosquitto.messages_received, 'Messages Received') + seriesOverrides: + - alias: Max + stack: False + type: graph + - title: Heap Size + span: 4 + targets: + - target: stats.gagues.mosquitto.heap_size + type: graph + - title: Data Transfers + span: 4 + targets: + - target: stats.gauges.mosquitto.bytes_sent + - target: stats.gauges.mosquitto.bytes_received + type: graph