Questions tagged [grafana-variable]
245 questions
0
votes
1 answer
Comparing two different date ranges in panels in Grafana
I needed a dashboard in Grafana to show two date ranges in panels. I have used interval variable and solve it. Like this:
As seen, one line shows current day and other line shows 10 day before. But we need as a date picker. I know Grafana does not…

madogan
- 605
- 7
- 11
0
votes
0 answers
Grafana randomly changes Strings from Data Source?
I am currently working on a project where I want wo collect some data from a specific Machine.
With that data there comes an Identifier which identifies the Object that's worked on, so it's kind of clear that this has to be an accurateley displayed…

NObshg
- 1
- 1
0
votes
1 answer
Grafana Dashboard for Gatling-influxdb Setup
I am trying to import some readymade dashboard from grafana for my setup( gatling/influxdb) but those are not working somehow specially simulation parameter in grafana dashboard.if someone using same setup , can please share their json file.
below…

Perf2017
- 29
- 5
0
votes
1 answer
Properly plotting on Grafana from Elasticsearch data
I wan to plot a time series on Grafana from some documents stored in ElasticSearch. The documents are structured as follows:
{
"timestamp": date,
"name1": str,
"name2": str,
"number": float
}
Since for a given a value of name1 only…

Simone Bolognini
- 505
- 5
- 14
0
votes
1 answer
A regex query in Grafana
I have this project name in Jenkins:
dir1/dir2/dir3/projectname
now, I want to extract and save each dir [dir1,dir2,dir3] to a different variable also project name. e.g: var1: dir1, var2: dir2, var3: dir3,projectname: projectname
I used a lot of…

pyramid13
- 266
- 1
- 5
- 21
0
votes
1 answer
Trimming column values while selecting with InfluxQL in Grafana Dashboard
I have a table like below. Col1 values has parenthesis like val1(12). But when I write a InfluxQL query I want to remove parenthesis and just get remaining. When the InfluxQL query runs in the output Val1(12) will be…

ivbtar
- 799
- 11
- 29
0
votes
1 answer
Grafana variable section show preview of values although query is wrong
I have a grafana dashboard. In this dashboard i created a variable. The sql query is wrong.
My datasource is : ansdatabase
wrong query : select client from ansdatabase
Right query : select client from clienttable
Strange thing is. When i open…

ivbtar
- 799
- 11
- 29
0
votes
1 answer
How to use template variables in alert filter field of Alert list panel
I am trying to repeat the rows for a multi-value template variable which represents different services within the same environment. Dashboard is divided into row - one per each value of the multi-value variable - and I put different graphs with an…

Deniz
- 858
- 10
- 31
0
votes
1 answer
Grafana cannot resolve variable
I am using a dashboard variable name $project which can be project_A, project_B or All(or *) in Grafana.
Now, I want to write a query like
sum by (uri,status,method)(
…

Blur Machine
- 63
- 1
- 3
0
votes
1 answer
grafana interval variable not dynamic
I'm making dashboard and as a reference I'm using already existing one, that dashboard has $interval variable which has such a settings .
and it used for example in the pane title, like this Top routes for [$interval], and in actual dashboard it…

Bogdan Dubyk
- 4,756
- 7
- 30
- 67
0
votes
2 answers
Retrieving the 12th through 14th characters from a long strong using ONLY regex - Grafana variable
I have a small issue, I am trying to get specific characters from a long string using regex but I am having trouble.
Workflow
Prometheus --> Grafana --> Variable (using regex)
I can't use anything other than Regex expressions to achieve this…

Chlorid
- 1
- 2
0
votes
1 answer
Grafana unknown column issue
I am using grafana dashboard version Grafana v8.1.3 (a61f38238c) . I am trying to save a dashboard with apanel. When i try to save dashboard ,i have the following error.
db query error: Error 1054: Unknown column 'time' in 'field list'
{
"id":…
0
votes
0 answers
grafana alert showing {} in output, from where we get this and is there anyway to update it
Below image shows output {} , why we get this and how to update it?

gaurav sharma
- 91
- 1
- 10
0
votes
1 answer
How do I create reactive Grafana variables that are based on other variables, all of which are defined in the dashboard settings?
I am trying to make a dashboard in Grafana, where all the variables are defined in the dashboard settings. Most of these are constants, though I have three input variables in the dashboard that will reactively change several other variables. My…

Carl Langaker
- 3
- 2
0
votes
1 answer
Reference variable value using Grafana text graph
Is there any way to create some "info box" which doesn't relate to numbers?
For example, querying the following:
container_cpu_usage_seconds_total{namespace="test4", pod=~"api.*", container!=""}
will return this…

toto
- 1,197
- 2
- 15
- 26