Questions tagged [grafana]

Grafana is an open-source web application for visualizing time-series databases (InfluxDB, Graphite, Prometheus, OpenTSDB), logging & document databases (Loki, Elasticsearch, Splunk, MongoDB), SQL databases (MySQL, PostgreSQL, Redshift), cloud metric databases (AWS CloudWatch, GCP Monitoring, Azure Monitor) and other datasources.

Grafana is an open source metric analytics & visualization suite. It is most commonly used for visualizing time series data for infrastructure and application analytics but many use it in other domains including industrial sensors, home automation, weather, and process control.

Latest stable version:

  • Grafana v8.5

References

Related Tags

5538 questions
27
votes
4 answers

How to set a dashboards on Grafana home page?

I have several dashboards in the Grafana, when I log in to the Grafana, I encounter with the Dashboard Not Found error. I want to set one of the Grafana dashboards as the home page (default page) when I log in to the Grafana.
Sepehr roosta
  • 567
  • 1
  • 5
  • 11
26
votes
3 answers

Filter prometheus results by metric value, not by label value

Because Prometheus topk returns more results than expected, and because https://github.com/prometheus/prometheus/issues/586 requires client-side processing that has not yet been made available via https://github.com/grafana/grafana/issues/7664, I'm…
Steve Dwire
  • 385
  • 1
  • 3
  • 9
25
votes
1 answer

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 a table of failure reason and its count. The problem is that the table is also showing…
nirsky
  • 2,955
  • 3
  • 22
  • 35
25
votes
7 answers

Is there a way to have a moving average in Grafana?

I didn't find a 'moving average' feature and I'm wondering if there's a workaround. I'm using influxdb as the backend.
bbigras
  • 1,311
  • 2
  • 17
  • 32
24
votes
2 answers

prometheus doesn't match regex query

I'm trying to write a prometheus query in grafana that will select visits_total{route!~"/api/docs/*"} What I'm trying to say is that it should select all the instances where the route doesn't match /api/docs/* (regex) but this isn't working. It's…
ninesalt
  • 4,054
  • 5
  • 35
  • 75
24
votes
3 answers

Grafana Legend format :9100 removal

I have ":9100" showing up at the end of my metrics. I am using a prometheus datasource with my company and can't change it. Has anyone figured out how to remove this? I was thinking maybe templates or regex but I haven't been successful…
user3149615
  • 349
  • 1
  • 2
  • 5
24
votes
2 answers

How to query for "all but one" in graphite/grafana

I'm playing with grafana and I want to create a panel where I compare data from one app server against the average of all the others except that one. Something like: apps.machine1.someMetric averageSeries(apps.*.not(machine1).someMetric) Can that…
sprugman
  • 19,351
  • 35
  • 110
  • 163
23
votes
2 answers

multiple values from grafana variable in prometheus query

We have a situation where we need to select the multiple values (instances/servers) from grafana variable field, and multiple values needs to passed to the Prometheus query using some regex, so that i can see selected hosts metrics in single graph.…
Anil Kumar
  • 381
  • 1
  • 2
  • 9
23
votes
4 answers

How can I change the datasource for a Grafana dashboard?

I've got a new datasource I would like an existing dashboard to use. How can I change it over? Is there a quicker way than exporting / importing the dashboard?
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
22
votes
2 answers

Simple cumulative increase in Prometheus

I have an application that increments a Prometheus counter when it receives a particular HTTP request. The application runs in Kubernetes, has multiple instances and redeploys multiple times a day. Using the query…
GavinE-OVO
  • 221
  • 2
  • 5
22
votes
3 answers

How to use a InfluxDB-tag value in a grafana legend?

I have a InfluxDB dataseries. It stores one information about mulitple machines. I distingsh between these machines with a tag. I can display the information for all three machines at once using a "Group by tag(machine)" clause. the name of the…
Michael K.
  • 423
  • 1
  • 4
  • 13
22
votes
1 answer

How can I aggregate metrics per day in a Grafana table?

I am charting data with a Grafana table, and I want to aggregate all data points from a single day into one row in the table. As you can see below my current setup is displaying the values on a per / minute basis. Question: How can I make a…
rykener
  • 711
  • 1
  • 6
  • 16
21
votes
7 answers

Grafana - How to order columns in Tables

Is it possible to order the columns in a Grafana Table? I have a Table (sourced from InfluxDB) but the columns are in a «wrong» order... I tried changing the order of the Group By clause in the InfluxQL but I get the exact same results.
Paul
  • 301
  • 1
  • 3
  • 8
20
votes
2 answers

Graphing slow counters with prometheus and grafana

We graph fast counters with sum(rate(my_counter_total[1m])) or with sum(irate(my_counter_total[20s])). Where the second one is preferrable if you can always expect changes within the last couple of seconds. But how do you graph slow counters where…
James
  • 11,654
  • 6
  • 52
  • 81
19
votes
3 answers

How do I get consistent values with influxdb non_negative_derivative?

Using grafana with influxdb, I am trying to show the per-second rate of some value that is a counter. If I use the non_negative_derivative(1s) function, the value of the rate seems to change dramatically depending on the time width of the grafana…
Ben
  • 4,785
  • 3
  • 27
  • 39