Questions tagged [grafana-variable]

245 questions
4
votes
1 answer

How to use variables in Grafana-Alert-Message? especially for the value of "threshold"

is here any body knows how to use system variables in Grafana-Alert-Message? especially for the value of "threshold" As we know, we can configure the alert triggers on "grafana panel", according to the predefined values of last() or avg() etc/, but…
4
votes
2 answers

How to display prometheus label, as value?

I am using the windows node exporter, and it contains a label value of ‘version’ with the windows_os_info query. I am running grafana 7.2.1, and have tried various configurations I cannot get it to just show the ‘version’ . Any ideas?
james
  • 157
  • 1
  • 2
  • 11
4
votes
2 answers

Grafana (V7) adding variable in table name

I need to be able to use variables in table names - I basically have the same set of tables used for different types of data, so I would like to just have one dashboard and swapping between all types instead of always having to set up multiple…
bouvetIsle
  • 93
  • 5
4
votes
2 answers

How to set a display name to a custom variable in Grafana dashboard?

There is an option to create custom variables and give CSV values for them which appear in the drop-down selection of Grafana Dashboard. These variables become the input to the queries which are templatized. Sometimes, the variable values are not…
NitishDeshpande
  • 435
  • 2
  • 6
  • 19
4
votes
4 answers

Grafana 7: How to hide table column but still use its value in a data link

Please note this is for Grafana 7 Just upgraded to version 7 and now I can not work out how to hide a column in a Table Panel but still use its value in a Data Link. I select 3 columns, the first being ID that I do not want to display but instead…
nigeu
  • 133
  • 2
  • 8
4
votes
2 answers

How to calculate percentage in grafana datasource elastic

Need your help, currently I have value elastic data sample like below : Completed : 100 Declined : 20 Canceled : 5 How to create percentage success rate result with above condition in grafana with formula : Completed / ( Completed + Declined +…
3
votes
0 answers

Selecting variables in Grafana using CSV datasource

I am using a CSV datasource and have created Variables like here, with a list of values: I want to reference this in my query and so I use the Transform option like below, but it doesnt work. Any idea how I can do it better or right? Thanks in…
Shyam V
  • 444
  • 4
  • 22
3
votes
2 answers

Can’t sign plugin using Grafana with Docker

I tried install this plugin to Grafana from github: https://github.com/Vertamedia/chtable I cloned this repository to pligins folder then added plugin to my grafana container: grafana: image: grafana/grafana ports: - '3000:3000' …
Andreas Hunter
  • 4,504
  • 11
  • 65
  • 125
3
votes
1 answer

How to create two levels Grafana Variable from ElasticSearch?

I work on creating some Grafana dashboards. At the moment, from ElasticSearch data source. When I am trying to create a variable in Grafana like the one below: {"find": "terms", "field": "myServer.name"} I get None, instead of getting these names:…
Dmytro Chasovskyi
  • 3,209
  • 4
  • 40
  • 82
3
votes
1 answer

Grafana + InfluxDB Flux - query for displaying multi-select variable inputs

We've set up a Grafana cloud + InfluxDB 2.0 (Flux language) cloud instance. As part of this, we've created a custom variable list with "device IDs", called devices. In a panel, we wish to display parameter data where the user can select one or more…
mfcss
  • 1,039
  • 1
  • 9
  • 25
3
votes
3 answers

Convert InfluxQL to FLUX query in Grafana

In Grafana I have a dashboard that uses InfluxDB 1.x as data source, I'm migrating it to use InfluxDB 2.0 data source and Flux querys. In the Grafana dashboard there is a Variable called "Server" which has the following query defined: SHOW TAG…
jonas
  • 31
  • 1
  • 3
3
votes
1 answer

Grafana dashboard variable - handling NULL values in Query-based variable

I've created a Grafana dashboard variable (multi-select enabled) based on a MySQL query: SELECT DISTINCT(my_field) from my_table This field has about 12 options, one of them being a NULL value. When editing my dashboard widgets, I include a SQL…
radicand
  • 6,068
  • 3
  • 27
  • 22
2
votes
1 answer

How to use Grafana template variable to select datasource

I have multiple Prometheus instances and I have a Custom multi-value variable PrometheusInstance with values A,B,C. I have 3 different data sources whose URLs look like this: http://A.foo.com:9090 etc. I would like the data source to change based on…
Dmitry z
  • 4,533
  • 4
  • 15
  • 15
2
votes
1 answer

Grafana error - parse error : input size too long (5491 > 5120)

I see the following error in our Grafana dashboard, which uses LOKI as a data source. Sometimes it shows the data, but other times it throws this error. parse error : input size too long (XXX > 5120) When I run the same query in Explorer, it works.…
2
votes
0 answers

Grafana Loki search from variables

There is a dashboard in grafana created in Loki. The "Services logs" row has one panel that expands depending on the selected containers in the "service_to_display" filter. I need to make it so that the search occurs only in the panel in which the…
1
2
3
16 17