Questions tagged [grafana-variable]

245 questions
1
vote
1 answer

Grafana dashboard Variables: how to extract a label value when the metric equal to a value

I have a metric to monitor the health status of microservices called nodejs_microservice_health_status. I want to create a variable failedmicroservice which extracts the value of the service label of the metrics when…
Ken Tsoi
  • 1,195
  • 1
  • 17
  • 37
1
vote
1 answer

I need to have multiple values passed in search box in grafana application logs dashboard

I need to have multiple values passed in search box in grafana application logs dashboard. currently i am using below query to search for a keyword in logs panel. kubernetes.namespace:$namespace AND kubernetes.pod.name:$pod AND stream:$log_stream…
1
vote
0 answers

Grafana - Modifying "All" label in JSON Model

I am currently working on a Grafana project and I need to translate the "All" results into "Tous". Example of what I need The one that is currently working is because it's got a limited number of results Working - filter with limited results The…
1
vote
0 answers

Using grafana duration variable to resample prometheus data

I have a Prometheus gauge metric x that models a rate per second. My goal is to create a Grafana dashboard that shows a bar chart for this rate and is generic over various levels of aggregation such as "average rate over the last 60min". For a fixed…
dassmann
  • 327
  • 1
  • 6
  • 13
1
vote
2 answers

Grafana Ad-hoc Filter with Prometheus query

I have just started working on Grafana and Prometheus to develop a dashboard. In my Grafana dashboard, I am trying to add an Ad-hoc Filter that allows users to select the values from dropdown. Following is sample Prometheus data Element …
Mike
  • 512
  • 3
  • 16
1
vote
2 answers

How to configure a Grafana dashboard for multiple Prometheus datasources?

I'm trying to configure a Grafana dashboard for multiple Prometheus datasources. These two datasources are present in two different servers. Prometheus scrape the metrics from three jobs, prometheus itself, node-exporter for host metrics, advisor…
Kartik Chauhan
  • 2,779
  • 5
  • 28
  • 39
1
vote
1 answer

Use grafana variable dependency from other variable selection (with prometheus)

I'm using Grafana to show Prometheus metrics. I have two variables in grafana, one is querying a label_values(kubernetes_name). I want to create another variable which will provide instance label values, but I do not want to get all the values of…
toto
  • 1,197
  • 2
  • 15
  • 26
1
vote
0 answers

Club two labels into one as Grafana variable

I want to generate a grafana variable containing unique value application_name-result based on these data: {app="abc-api", application_name="abc-processor", application_type="processor", stream_name="test-stream", result="success"} {app="abc-api",…
1
vote
0 answers

How to add the result of multiple queries in influxdb / grafana

Actually I want the cardinality of the tag value in the influxdb database with multiple measurements. e.g. DB has m1,m2,m3 measurements and I wrote the query as show tag values cardinality on Db from m1 with key = "key" this query return the result…
1
vote
1 answer

How to pass value form one panel to another panel on same dashboard in Grafana?

I have a table panel with user details. If I click a row in a table I need to pass userId and display user details to another panel on the same dashboard. For that, How to pass values(userId) from one panel to another panel on the same dashboard? Is…
Naveen
  • 77
  • 3
  • 22
1
vote
0 answers

How to display TOP result 10 in Grafana for influxDB?

I need to show Top 10 Nodes with most total GC time on Grafana with InfluxDB but not sure how to solve it. I have tried below things but nothing work. 1. We cannot use TOP function with group by as it is limitation of InfluxDB to get TOP result. 2.…
1
vote
1 answer

How use variable in grafana as unit?

I need to be able to change the units of measurement none/dollars so that I can see raw data without rounding.
batazor
  • 852
  • 2
  • 16
  • 36
1
vote
1 answer

Regexp & Grafana: exclusions and string cut

I'm using Grafana and Prometheus to create some graphs, but this I believe is fundamentally a regexp (RE2?) question. I am dynamically creating a list of elements and populating a Variable (Query of label_values(source) where "source" contains the…
John Todd
  • 53
  • 1
  • 3
  • 7
1
vote
1 answer

Cannot select variables from table (Postgresql)

I have Variable Names which stores all column names. Names = {“col 1”, “col 2”, “col 3”} I want to make request like SELECT $Names FROM MyTable Generated SQL: SELECT 'col 1' FROM MyTable; but I got error: Value column must have numeric datatype,…
1
vote
0 answers

Use variables to select subscription and workspace for azure data source in grafana

I am trying to create a dashboard which we can switch between our environments using variables, my credentials can see all our log analytics workspaces in azure (one per environment). But I’m not sure how on the query tool how I can add these…
mattb
  • 384
  • 1
  • 4
  • 24