Category "grafana"

PromQL: how to change null value to an arbitrary value?

I have situation where my metric is set to 0 by a program when everything works fine. I would like to treat null value as an error value (in my case 1). The eas

Need a working example of Grafana integrated with a custom API to display Node Graph

I am trying to generate a directed node graph using grafana (latest). I hardly see any tutorials anywhere. I can expose an api which reads JSON data from disk a

How do I setup Kubernetes CIFS Persistent Volume PV Permissions for Bitnami Postgres Helm Deployment?

I have a Kubernetes cluster that I am trying to deploy different Helm Charts, when charts have no persistence everything works great. When the Helm charts use p

Query for a cache hit rate graph with prometheus

I'm using Caffeine cache with Spring Boot application. All metrics are enabled, so I have them on Prometheus and Grafana. Based on cache_gets_total metric I w

Grafana alert when change between two data points is high

I have a Grafana graph with data coming in from Prometheus. I'm trying to get an alert set up so that if the change over one minute (or so, I'm flexible) is ov

count k8s cluster cpu/memory usage with prometheus

I want to count k8s cluster cpu/memory usage (not k8s pod usage) with prometheus, so that i can show in grafana. I use sum (container_memory_usage_bytes{id="/"

Grafana group series

I have postgres table with three variables: datetime, robot_id and energy_percent. Now at chart I have energy_percent and robot_id. How to group records from th

Prometheus - exclude 0 values from query result

I'm displaying Prometheus query on a Grafana table. That's the query (Counter metric): sum(increase(check_fail{app="monitor"}[20m])) by (reason) The result is

How to use Grafana dashboard variable in another variables regex?

I created a Grafana dashboard variable and tried to filter the values via the regex field. This works for static regex definition. I would now like to use anot

Grafana : unable to customize webhook with templates

I'm using Grafana v.8.3.4, with the unified alerting system enabled. I want to send a simple webhook-based alert. The alert fired correctly, but the body of the

Kubernetes node-exporter container is not working it shows this error message

Error: failed to start container "node-exporter": Error response from daemon: path /sys is mounted on /sys but it is not a shared or slave mount shows that mes

Grafana with Prometheus Node Export

I set up Prometheus + Node Exporter + Grafana with the following instructions: klick Node Exporter Config Prometheus So, everything worked quite well. In Promet

Azure policies(gatekeeper) monitoring on AKS via Prometheus and Grafana

I have enabled azure policies via terraform and applied to AKS cluster. I can see pods are deployed, up and running. I applied in-built initiative here too with

Grafana chained variables in repeating rows

I have a dashboard that uses two variables: $clients is a static list and $running_sessions is the result of a MySql query that uses $clients (something like s

Prometheus query in Grafana with query variable

My Grafana panel query is sum(kube_pod_container_resource_limits_cpu_cores{node=~"$workers"}) / sum(kube_node_status_allocatable_cpu_cores{node=~"$workers"}) T

Clear old data in Grafana

I'm using Prometheus and Grafana for monitoring the servers. Grafana data were stored in /home/user/data folder. This folder occupied the majority of the file

Match by exported instance in Grafana and Prometheus

I'm working in Grafana and Prometheus and I have Pushgateway exporting some stats for me. In Grafana, I am trying to display these results per machine. My jobs

Loki Ruler not sending alerts to alert Manager

I have loki + grafana + prometheus running in EKS using official helm charts. I want to send alerts based on error log messages and for that i'm trying to use t

How to use like in MySQL query in Grafana?

I am working in grafana with MySQL. I have a template variable and it has multiple values and I want to use that template variable with MySQL query using 'like'

How to color table in Grafana based on individual column values?

I have a grafana table which shows max, min, avg and std.dev. When I set the color scheme, the color map range is based on whole table values. However, I want t