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
This commit is contained in:
Matthew Treinish 2017-04-20 15:21:09 -04:00
parent 840862348f
commit cee76fdcf1
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
1 changed files with 60 additions and 0 deletions

60
grafana/mosquitto.yaml Normal file
View File

@ -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