Add this tag to questions regarding Grafana Templating.
Questions tagged [grafana-templating]
188 questions
34
votes
3 answers
How to use the selected period of time in a query?
I'm using Grafana with Prometheus and I'd like to build a query that depends on the selected period of time selected in the upper right corner of the screen.
Is there any variable (or something like that) to use in the query field?
In other words,…

Facundo Chambo
- 3,088
- 6
- 20
- 25
27
votes
4 answers
How to set a dashboards on Grafana home page?
I have several dashboards in the Grafana, when I log in to the Grafana, I encounter with the Dashboard Not Found error.
I want to set one of the Grafana dashboards as the home page (default page) when I log in to the Grafana.

Sepehr roosta
- 567
- 1
- 5
- 11
24
votes
3 answers
Grafana Legend format :9100 removal
I have ":9100" showing up at the end of my metrics. I am using a prometheus datasource with my company and can't change it. Has anyone figured out how to remove this? I was thinking maybe templates or regex but I haven't been successful…

user3149615
- 349
- 1
- 2
- 5
18
votes
2 answers
How to add dashboard configuration json file in Grafana image?
I have a grafana docker image which have hawkular-datasource pre-configured using configuration files.
After after running grafana instance, I have a json given by teammate, which can be imported inside grafana and that json file creates dashboard…

GreyWorm
- 183
- 1
- 1
- 6
8
votes
1 answer
Can we create an alert on a singlestat
Can we create an alert on a singlestat? I don't see an "alert tab" to create an alert. Can you please suggest me a way to compare two singlestat from 2 data sources.

naga g
- 121
- 1
- 2
- 7
7
votes
0 answers
Grafana ElasticSearch Nested document query
in Elasticsearch we have a document like follows:
{
"_index": "1",
"_type": "_doc",
"_id": "2018-11-12 7:00:00 - 2018-11-12 7:30:00",
"_score": 1,
"_source": {
"start": "2018-11-12 7:00:00"
…

KaiwalyaPowle
- 91
- 7
6
votes
1 answer
How to add a dropdown menu in Grafana?
I need a way to add a Dropdown menu ( or similar solution ) to show the metrics for only one cpu ( cpu 1 or cpu 0 ). Is this possible?
The metric is node_cpu_seconds_total

xRobot
- 25,579
- 69
- 184
- 304
6
votes
1 answer
Grafana user variables
is it possible to use Grafana's userID or user variables in MySQL query ?
For example :
SELECT id,name FROM table WHERE user_id=$Grafana.User.id
Or is there another way to assign a custom variable to specific user within Grafana ?

user1972670
- 397
- 1
- 4
- 15
5
votes
1 answer
Grafana message templates
I am currently setting up grafana alerts. How do I customize my message template so my alert email shows The ip address of the server, the state of the server and the node/instance?
Thank you.

vinisha harinarain
- 51
- 2
5
votes
3 answers
How can I use key/value dashboard variables in Grafana + InfluxDB?
I’m trying to suss out how to format my key/value pair dashboard variable. I’ve got a variable whose definitions are:
sensor_list = 4431,8298,11041,13781
sensor_kv = 4431 : Storage,8298 : Stairs,11041 : Closet,13781 : Attic
However, I can't seem to…

Chris R
- 17,546
- 23
- 105
- 172
5
votes
1 answer
Grafana templating: Regex for Prometheus label_values variables
I am trying to setup templating in Grafana using the label_values function.
The documentation specifies the possibility to query label_values like:
label_values(metric, label)
In my use case there are two main metric groups with names similar…

Pieter Moens
- 331
- 1
- 4
- 14
5
votes
2 answers
How to filter grafana dashboard with greater than and less than operators?
I'm working on a project where I'm using Grafana and InfluxdB. I was able to get all the required values to grafana.
In my response I have a filed with value less than and greater than zero. I want to add a filter where user can select the type of…

Ashwin
- 439
- 1
- 7
- 23
5
votes
3 answers
How to access variable, passed through URL in grafana?
I am trying to make a detailed dashboard in grafana that opens on click. I do it by passing a variable to the dashboard debending on the clicked facility. When the dashboard opens it needs to display value using the passed url variable inst. I just…

gogibogi4
- 263
- 4
- 15
5
votes
0 answers
grafana/influx says "no data points" but only sometimes
I have some grafana dashboards with graphs that sometimes show "No data points". I know there's data, because other times I see graphs and other graphs on the same page display other results from the same measurements. Also, I can query the data…

jma
- 3,580
- 6
- 40
- 60
4
votes
0 answers
Bulk edit field overrides in all / specific library panels
I monitor my docker containers using Grafana. However every time I add a new service, I have to edit all field overrides for CPU usage, RAM usage, network etc. in all my library panels, because the InfluxDB entries are rather long and not as concise…

GiantSunflower
- 71
- 1
- 5