- Install the simple json datasource plugin
$ grafana-cli plugins install grafana-simple-json-datasource
- restart grafana
- launch
eventmaster - configure new Data Source (
Menu>Data Sources> +Add data source)- give it a name
- change
TypetoSimpleJson - provide the url, including the
/grafanasuffix, e.g.:http://localhost:50052/grafana - Configure direct accesss
- click
Save & Test
At this point eventmaster is configured as a backend.
To add all events to a dashboard you will need to configure an Annotation with eventmaster as the datasource:
- click on
configure gear icon>Annotations>New - Name the annotation
- choose the appropriate datasource from earlier
- optionally pick a color
- click
Add
At this point all events are rendered in all panels in the dashboard.
If you'd like to filter down by datacenter and topic you'll also need to add some template variables.
- click on
configure gear icon>Templating>New - provide
dcas the name - select the
eventmasterdatasource - Set Refresh to
On Dashboard Load - set
Querytodc - click
Add
Repeat these steps with topic insterad of dc.
In order for the variables to be provided to eventmaster for filtering edit the annotation:
- click on
configure gear icon>Annotations>Edit - provide the following as the
Queryfield{"topic": "$topic", "dc": "$dc"}



