Add this tag to questions regarding Grafana Templating.
Questions tagged [grafana-templating]
188 questions
1
vote
1 answer
Provisioned Grafana Alerts send alerts when "no_data_state": "OK" is configured
Grafana version 9.2.3
I've created alerts via the Grafana UI and set the error and noData states as OK, meaning don't send any alerts if the alert is in an "error" or "no data" state.
These alerts work perfectly and remain in a state of "OK" or "OK…

Tom Simpson
- 13
- 3
1
vote
0 answers
How to use variables in alerts message while creating alert in Grafana(v 8.5.6) using Azure Monitor as a datasource?
I want to create an alert in Grafana (v 8.5.6)and I am using AzureMonitor as a datasource. While creating the alert I am not able to use Resourcegroup, Resource name or Metric Name in the message field of the alert. How to get these values populated…

Parag Gupta
- 143
- 1
- 6
1
vote
0 answers
How to show specific information in Grafana alerts
I've configured Grafana to send e-mails based on disk space, and it all works fine.
However, when the e-mails come in, they appear like this
Is there a way to change the Value: portion to only show the instanceID and privateIP address and percentage…

Metro
- 873
- 8
- 19
1
vote
0 answers
How to sort alerts from Prometheus correctly in the Grafana panel
We have several alerts from Prometheus, we would like to visualize them in tables on the Grafana dashboard in the alert list. We would like to sort the alerts by severity and later by environment.
So the severities…

BranoBar
- 11
- 3
1
vote
1 answer
Azure Monitor datasource isnt working error "Azure Log Analytics requires access to Azure Monitor but had the following error: InternalServerError"
We are using the Azure-Monitor Datasource with Managed Identity. We are monitoring the Kubernetes with log analytics. We have given "Log Analytics Reader Role and Monitoring reader(subscription Level)". Till last Thursday it was working fine when I…

kiran
- 51
- 4
1
vote
0 answers
How to produce multiple similar Grafana dashboards for kube-prometheus-stack? What does makes the collision that I see only one from the bunch of them
I have updated the standard dashboard yaml to those who iterates over the configuration:
{{- /*
Generated from 'apiserver' from…

Eljah
- 4,188
- 4
- 41
- 85
1
vote
1 answer
Creating a Grafana query variable based on a manipulated version of another one
I have a grafana dashboard that I want to filter by 2 variables:
Kubernetes namespace (which I can easily get from Prometheus)
AWS SQS Queue - get only the queues whose names are contained in the namespace from #1
This is relatively easy - I…

KidCrippler
- 1,633
- 2
- 19
- 34
1
vote
0 answers
GRAFANA: Templating to the alert rule name dont work for me
Hellow, I am trying to do this in GRAFANA:
https://grafana.com/docs/grafana/latest/alerting/old-alerting/add-notification-template/
I mean, I wanna use templating to form a alert Message.
This is my query:
from(bucket: "monees")
|> range(start:…

José Pablo Medina Grande
- 71
- 1
- 12
1
vote
0 answers
how does grafana dashboard show jenkins as down when the jenkins server is stopped rather than just saying "no data available"
Background: I have a linux server where I configured my jenkins and installed the prometheus plugin to scrape the jenkins instance metrics. I am using grafana dashboard to visualize and monitor the jenkins server. In grafana I have used the…

MichealMills
- 315
- 5
- 15
1
vote
1 answer
Grafana: Is a dashboard-wide constant map/dictionary possible?
I have a Grafana dashboard which has 3 different global variables for the user to choose from: cloud(aws, azure, gcp), environment(dev, stage, prod), location(eastus2, westus2, westeurope, northeurope, etc..)
The user can choose a specific dashboard…

Ken Tsoi
- 1,195
- 1
- 17
- 37
1
vote
0 answers
Converting label to X-axis in Grafana
I have the following prometheus metrics scraping from an exporter and the label has the correct “time” I want to use in X axis instead of “Time”.
Is it possible to convert/transform “time” label as x axis?
Thank you!

Peter Smith
- 53
- 1
- 9
1
vote
1 answer
Display weekday on x axis instead of date on Grafana
Hi is there a way to display the day of the week on a Grafana plot eg Monday, Tuesday, Wednesday on the x axis instead of the date eg 05/27, 05/28, 05/29 etc?

Phil Anselmo
- 11
- 1
- 2
1
vote
0 answers
Grafana Loki Create dashboard with same graph then explore page
I’m trying to create dashboards with Grafana Loki.
I have to reproduce this exact graph that is by default on the page explore:
I also tried to group the logs by level but the result is completely different
Does anyone know how to retrieve the…

Jalisse
- 39
- 5
1
vote
0 answers
How to turn off data formatting in table in time series data in grafana?
How do I turn off formatted data option by default so that the user can download the data as it is without any extra steps ? See the images for reference
Formatted data on
Formatted data off

Harshit Vijayvargia
- 173
- 2
- 12
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