- 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
Type
toSimpleJson
- provide the url, including the
/grafana
suffix, 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
dc
as the name - select the
eventmaster
datasource - Set Refresh to
On Dashboard Load
- set
Query
todc
- 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
Query
field{"topic": "$topic", "dc": "$dc"}