Grafana Variables

From Knowledge Center
Jump to: navigation, search

Create variables in grafana to drill down into the data your are looking for with select picker options.

Hostname Variable

Create a hostname variable

{"find": "terms", "field": ""}

In your query you can use it as:$hostname AND

Host and Process

If you want to group all data for a client, and the processes for the selected service:

Template variable host for a client:

{"find": "terms", "field": "", "query":"fields.client_name:example1"}

Template variable processes per hostname:

{"find": "terms", "field": "", "query": "$hostname"}