Questions tagged [grafana-variable]

245 questions
0
votes
1 answer

Grafana/Prometheus Multi-value selection with avg() function

I'm trying to create a Grafana dashboard with Multi-select and ALL option to be enabled from variable. Query exmple: avg(metric{label1="$label1",label2=~"$label2",label3=~"$label3"}) Multi-select and ALL options looks fine in variable dropdown, but…
Sammi
  • 41
  • 4
0
votes
0 answers

Grafana CloudWatch Logs Math Expression

Is there a way to perform a math expression on 2 CloudWatch Logs Insight queries in Grafana? When I try to do so, I get an error: The error is: level=error msg="Query data error" error="expression request error: failed to query data: query must…
0
votes
1 answer

Count the labels value and use it in another query - PromQL

I'm making a Grafana dashboard to display the performance of the canary application. My problem is I need to find out which instance is the canary one (blue or green). Canary stack will always create one instance either blue or green so I can see…
Roopchand
  • 33
  • 5
0
votes
1 answer

Creating Variable with Multiple Tags in InfluxDB2

How to create a Variable with multiple tags in Flux? import "influxdata/influxdb/schema" schema.measurementTagValues( bucket: "AUTOMATIONDB", measurement: "${MEASUREMENT}", tag: "${RUNID}", tag: "CATEGORY". ) The above query gives…
0
votes
1 answer

Get FDQN from url and link it to grafana dashboards data link

I have a grafana dashboard and I want to extract the url and use it in grafana data links .is there a variable I can use in order to get the url. Example: I want to extract this https://bingoke.com and use it in datalinks I want to replace…
0
votes
0 answers

Grafana wrongly querying with every value of variable in dimension because of expressions

I don't use stack overflow to ask questions much so please let me know if you need more details. Looking around the internet I couldn't find anyone with this problem: I have created a variable that can have multiple values. Example: cluster = [1,…
My Boi
  • 23
  • 1
  • 4
0
votes
2 answers

Use the operator < or > in the where clause with variables when working with Gauges in MySQL

I’m working with gauges and I run into a stopper. I hope someone can unblock my issue here. I got a lot of variables which are able to display different data on the same chart. Every other variable is working, but the one I got stuck with is: Año…
0
votes
1 answer

Grafana - Mean calculation from dynamic panels inside a dashboard

We have a Grafana dashboard with Prometheus as data source. Inside the dashboard, we have a row that will repeat based on the service(multi select variable) selected. The repeated rows will have panels for SLI mean. My requirement is: I have to find…
Bergin
  • 188
  • 3
  • 12
0
votes
1 answer

Time range in query variables Grafana MongoDB

Can the Dashboard time range be used inside a query variable with MongoDB? I want to extract the values of a variable of the data only inside the Time Range from the dashboard, but it seems that the global variabled corresponding to the Time-Range…
0
votes
1 answer

How to create a dropdown variable with tag values in a Grafana?

I am using Grafana with KairosDB as datasource. In Grafana dashboard , I want to add a variable with ringId as name, and Basically that dropdown will have to display all the values of tag "ringId" available in the database so that whenever new…
vasu
  • 23
  • 6
0
votes
1 answer

Template variable in another variable - Grafana

Grafana version - v7.5.3 I have two “custom” variables - env - has following values: test,prod instanceidtest - someid instanceidprod - anotherid JSON example: “targets”: [ { "alias": "cpu", "dimensions": { "InstanceId":…
0
votes
1 answer

How to display Instance Tag instead of InstanceID in Grafana

Is there any way to display the AWS instance name(tag) instead of instanceId?. Any variable setup is needed for this. Just want to show the tag names of all instances. Or any way to show the instanceId using variable declaration?. Any way to show…
AWS Coder
  • 455
  • 1
  • 8
  • 13
0
votes
0 answers

Grafana prometheus variables don't work when including regex

I'm trying to filter out panel using variables(job), it works but to clean the resulten drop down menu I have included regex to narrow down the output menu and once I do that the panels don't work anymore. It must be something in using the variables…
MsCurious
  • 175
  • 1
  • 12
0
votes
1 answer

InfluxDB select aggregate value and tag as string, grouped by tag

I am using an InfluxDB data source in Grafana. I have a repeating panel of graphs, grouped by a tag value. I am wishing to sort these graphs by an aggregate numeric value, rather than the tag value itself. A trivial InfluxDB query would be: SELECT…
nullPainter
  • 2,676
  • 3
  • 22
  • 42
0
votes
1 answer

In Grafana, how to build a data link to filter current dashboard when there is more than one variable?

I'm using Grafana v8.3.4 (a551d74b11) I've a dashboard with many variables (filters). One of those is for exemple TransactionType. I would like my charts to filter on click. For example with a pie chart using TransactionType, I want to filter the…
Stephane
  • 161
  • 2
  • 14