Questions tagged [grafana-templating]

Add this tag to questions regarding Grafana Templating.

188 questions
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…
0
votes
1 answer

How can I join two metrics in Prometheus where the label of a metric is part of the other metric label containing comma-separated values?

After digging the doc and the web, maybe you'll be able to help me on this topic. I am using Prometheus as a Data Source in Grafana. We have a first metric, called module_status. I am filtering on it using a specific module…
0
votes
0 answers

Upgrade Grafana 7.x.x to 9.x.x alerts missing

I had Grafana 7.5.7 working with a lot of alerts configured I used to save all the dashboards as a json file and this has the alerts. After I upgraded to the 9.3.1 version all the alerts disappeared. I saw online that you can configure the old…
James May
  • 11
  • 3
0
votes
0 answers

Define Panel link on Grafana Template

I am defining panel link on Grafana message template but it is showing up as normal text enter image description here But I want something like this on the message. enter image description here This is my code: ``{{- define “slack.text” -}} {{-…
0
votes
0 answers

Create Templating variable using groupby in label_values

Running below query in prometheus produces results, How can I (is it possible to) create a templating variable in Grafana using similar query with label_values ? group by (label_application_service_name) (kube_namespace_labels) Something…
funtoos
  • 295
  • 1
  • 4
  • 17
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
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

How to send daily infra usage report to slack using grafana?

I have setup eks cluster with grafana and prometheus for infra monitoring and alerting. I want to send daily infra usage report. This report can include cluster level metrics like maximum node count,pod count etc.
0
votes
1 answer

How to query for Servers from Prometheus target endpoints in Grafana variables?

I have prometheus target endpoint http://10.x.x.x/9090/targets . I am able to see the endpoints which are scraping metrics from the node. I want to get those endpoints as servers in grafana dashboard dropdown. Currentyl it is being displayed as…
0
votes
1 answer

Grafana Alert Value String Templating

I'm creating a Grafana alert with the Elastic datasource. The condition operator is grouping all meaningful labels from my alert. [ var='A0' metric='' labels={header_host=hostname1.com value=1496 ], [ var='A1' metric=''…
0
votes
0 answers

Grafana Alert Notification Message

I have installed the grafana 9 on ubunt 20.04 and trying to setup alerting but i don't know how to send the common_name result from below grafana query in the alert notification message so please check and suggest what i have to do to add…
0
votes
1 answer

Grafana Contact Point: How to access the data contained in .ValueString in a programmatic way?

The setup For a Contact Point configured to use Slack "Text Body" field contains the following: {{ if eq .Status "firing" }}   Type: {{ .CommonLabels.type }}   {{ range .Alerts }}     Status: {{ .Status }}     {{ range .Labels.SortedPairs }}      …
0
votes
0 answers

Can we create a custom variable using multiple custom variables

I have some custom variables like CPU usage, Memory Usage, CPU cores, and Total Memory. Now I want to create another custom variable with values 3,5,10. But for every value in the new custom variable, I want to pass values using in above custom…
0
votes
0 answers

Dashboard is frozen - no recent changes

When I try to load my Grafana dashboard , it sometimes freezes and the page becomes unresponsive. I can’t click anything. Only a couple panels show data before it freezes, and the rest of the panels are stuck with the rotating arrows. I have not…
0
votes
1 answer

create alert in grafana based on number fields having value below threshold

We have grafana dashboard which has x axis has time and y axis with free memory in the server(in gb). Dashboard has fields for 100+ servers in a particular datacenter. Threshold for free memory is below 12gb. If a server has memory below 12gb it’s…