Skip to content

Latest commit

 

History

History

grafana

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Grafana configuration instructions

Configuring eventmaster as a grafana datasource

  1. Install the simple json datasource plugin
    $ grafana-cli plugins install grafana-simple-json-datasource
  2. restart grafana
  3. launch eventmaster
  4. configure new Data Source (Menu > Data Sources > + Add data source)
    1. give it a name
    2. change Type to SimpleJson
    3. provide the url, including the /grafana suffix, e.g.: http://localhost:50052/grafana
    4. Configure direct accesss
    5. click Save & Test

successful add of datasource

At this point eventmaster is configured as a backend.

Add Annotations to a Dashboard

To add all events to a dashboard you will need to configure an Annotation with eventmaster as the datasource:

  1. click on configure gear icon > Annotations > New
  2. Name the annotation
  3. choose the appropriate datasource from earlier
  4. optionally pick a color
  5. click Add

Add annotation example

At this point all events are rendered in all panels in the dashboard.

Filter events

If you'd like to filter down by datacenter and topic you'll also need to add some template variables.

  1. click on configure gear icon > Templating > New
  2. provide dc as the name
  3. select the eventmaster datasource
  4. Set Refresh to On Dashboard Load
  5. set Query to dc
  6. click Add

Add dc variable

Repeat these steps with topic insterad of dc.

In order for the variables to be provided to eventmaster for filtering edit the annotation:

  1. click on configure gear icon > Annotations > Edit
  2. provide the following as the Query field
    {"topic": "$topic", "dc": "$dc"} 
    

Add query to annotation