Questions tagged [grafana-variable]
245 questions
0
votes
0 answers
How to use common variable for muti-datasources in a single dashboard
I am having a existing grafana dashboard working on Thanos datasource and I have also included a elastic search(datasource) panel in the same dashboard by elasticsearch environment variable. Is there any posible way, having common variables (env,lz)…

only me
- 1
- 1
0
votes
0 answers
Override old data in a Grafana gauge panel
With transformation, is it possible to filter data older than a certain period?
I would like to reproduce the same behavior of the SQL clause:
WHERE "time_frame" > (NOW() - INTERVAL '5 minute')
But I would like to avoid filtering the data in the…

drypatrick
- 437
- 1
- 4
- 17
0
votes
1 answer
Interval in query options and the resulting number changing from resolution to resolution
I’m quite a beginner of Grafana and Prometheus, I’m facing a strange situation about a stat widget showing a number, the prometheus query is simply this:
sum(my_metric_counter)
I tried to compose a screenshot where you can see steps I do to…

Gamby
- 585
- 1
- 6
- 22
0
votes
0 answers
Timezone changes when converting time to string
I use InfluxDB as Datasource and Flux as query language.
In the time format the displayed value is e.g. 2023-02-10 16:47:33. When using toString() I get 2023-02-10T15:47:33.9000000000Z. So the value changes by one hour.
I tried different time zones…

Steinbachson
- 1
- 1
0
votes
1 answer
How can I alias labels (using a query) in Grafana?
I'm using Grafana v9.3.2.2 on Azure Grafana
I have a line chart with labels of an ID. I also have an SQL table in which the IDs are mapped to simple strings. I want to alias the IDs in the label to the strings from the SQL
I am trying to look for a…

Shobhit Kumar
- 626
- 1
- 5
- 21
0
votes
0 answers
Infinite Scrolling of Grafana Table Plugin with lazy Loading Query
I am trying to create a custom table plugin with infinite scroll with lazy loading of query.
I have a list of 50000 Rows and query loads all the data at a time i want to make it a infinite scroll with query calling 50 rows at a time and show them…
0
votes
0 answers
Showing value of metric in Grafana unified alert
I have a following query for getting node memory
100 -
(
avg(node_memory_MemAvailable_bytes{job="node-exporter", instance="211.111.81.111:0000"}) /
avg(node_memory_MemTotal_bytes{job="node-exporter", instance="211.111.81.111:0000"})
* 100
)
I…

Ruslan Pylypiuk
- 67
- 5
0
votes
0 answers
Show promql query results for current day only
I am trying to write a promql query to show the count of metrics summed up on hourly basis for current day.
In my case, I have a "producer_invoked_count" metrics which is invoked per minute in my application.
Would like to create a chart in grafana…

NitinChougule
- 1
- 1
0
votes
0 answers
I want to update viewers_can_edit param in grafana defaults.ini file deployed by helm in kubernetes
I want to update viewers_can_edit param in grafana defaults.ini file deployed by helm in kubernetes . I need change the parameter from false to true.
I deployed the solution prometheus stack in a kubernetes cluster, version 1.20, using helm.
So, I…

Juan Andres Mercado
- 31
- 3
0
votes
0 answers
Data link issue-Grafana
i have a grafana link eg::http://10.14.116.3:3000/d/3DswEOcVz/single-transaction?orgId=13&viewPanel=2, what do i need add to link above in another dashboard table to filter based on the txn ID value i clicked. The two tables have similar…
0
votes
0 answers
run postgres long query in grafana
I have a long query which is about 70 lines in Postgres and I created view of it in PGadmin to use it whenever need.
Now, I want to create dashboard of that view in Grafana, I think it is not good idea to past all queries in Grafana SQLEditor and…

amir darvish
- 25
- 4
0
votes
0 answers
How can I alias a variable in Grafana?
I have a Grafana dashboard that displays Prometheus metrics for two AWS instances. I have a dashboard variable defined that returns the instance IDs I am interested in. For an "All" option I am using ".*". I match the resulting instance ID in my…

qq4
- 282
- 4
- 14
0
votes
0 answers
How to dynamically set Grafana data source HTTP header based on the chosen value from a variable in dashboard?
I'm working with Cortex multi-tenancy where both write and read paths require X-Scope-OrgID HTTP header in the request.
The write path is working fine. But I can't figure out how to pass the chosen tenant name in my dashboard to the Cortex data…

Zulhilmi Zainudin
- 9,017
- 12
- 62
- 98
0
votes
1 answer
Using regexp with groups in Grafana
I have Grafana dashboards with “Stat” components and I try to change the display names.
I’ve found only one working way: add a field override using regexp. All works, but I can’t use groups in regexp. I want to do something…
0
votes
0 answers
grafana override a dashboard dropdown value for a single graph
Is it possible to change the value only for a single graph in a dashboard?
Like this pseudo promql ($vertical is taken from global dropdown):
if $vertical=='fido2' then $vertical='multi-tenant'…

MortenB
- 2,749
- 1
- 31
- 35