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
10
votes
3 answers

Send logs directly to Loki without use of agents

Is there a way to send logs to Loki directly without having to use one of it's agents? For example, if I have an API, is it possible to send request/response logs directly to Loki from an API, without the interference of, for example, Promtail?
OmarLittle
  • 423
  • 1
  • 9
  • 18
10
votes
3 answers

Understanding of rate() function of PromQL

I went through the PromQL docs and found rate little bit confusing. Then I tried one query from Prometheus query dashboard and found below given results Time Count increase rate(count[1m]) 15s 4381 0 0 30s 4381 0 0 45s 4381 …
Deepu--Java
  • 3,742
  • 3
  • 19
  • 30
10
votes
2 answers

Physical location of grafana dashboards

In my project we use influx dB and Grafana for our log and other analysis which is running on an Ubuntu machine. Now recently due to a migration process, the ports were blocked like 3000(for Grafana) and 8086 (for influx dB) which will be remain…
Jyoti Prakash Mallick
  • 2,119
  • 3
  • 21
  • 38
10
votes
2 answers

How to create grafana configmap for datasources?

I am trying to create a configmap for a Grafana datasource, using an instance of Grafana from the Kube-Prometheus-Stack helm chart https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack I am aware for dashboards,…
dwlian
  • 111
  • 1
  • 2
  • 4
10
votes
1 answer

Prometheus in Grafana, how to time shift single query backwards

What does not work: Grafana's time shift option because it applies to all queries, and negative values not accepted. Adding 'offset' to the query allows to move it forward (to the right) in time, but a negative value is not accepted.
Sat
  • 103
  • 1
  • 6
10
votes
3 answers

Prometheus-Grafana : How to use wildcard in query

I have below labels in prometheus, how to create wildcard query while templating something like “query”: “label_values(application_*Count_Total,xyx)” . These values are generated from a Eclipse Microprofile…
funtoos
  • 295
  • 1
  • 4
  • 17
10
votes
0 answers

Referencing Prometheus query in Grafana

When using Grafana with Graphite, you can reference existing queries A and B in a third query like this: sumSeries(#A,#B) Using Prometheus as a data source, this doesn't even work: #A I'm assuming this has to do with the fact that Prometheus is…
b15
  • 2,101
  • 3
  • 28
  • 46
10
votes
4 answers

Connecting to postgresql from grafana

Connecting to postgresql-11.5.1 from grafana is not working. I installed postgres on my local and created a grafana and trying to connect, but i get the usual error: dial tcp 127.0.0.1:5432: connect: connection refused am NOT using postgresql on…
Sakthi
  • 113
  • 1
  • 5
10
votes
2 answers

Calculating average time a value was set to 0 before transitioning to 1

I have set up Prometheus monitoring and I'm generating an 'uptime' report based on a criteria such as: 'error rates < x%'. The corresponding PromQL is ( sum(increase(errors[5m])) / sum(increase(requests[5m])) ) <= bool 0.1 This gets displayed…
Robert Munteanu
  • 67,031
  • 36
  • 206
  • 278
10
votes
2 answers

Kubernetes Ingress not adding the application URL for grafana dashboard

I have install the Grafan in my Kubenernetes 1.9 cluster. When I access with my ingress URL (http://sample.com/grafana/ ) getting the first page. After that javascript, css download not adding /grafana to the URL. here is my ingress…
sfgroups
  • 18,151
  • 28
  • 132
  • 204
10
votes
1 answer

How to config alertmanager which installed by helm on kubernetes?

Use Helm installed Prometheus and Grafana in a kubernetes cluster: helm install stable/prometheus helm install stable/grafana It has an alertmanage service. But I saw a blog introduced how to setup alertmanager config with yaml…
online
  • 4,919
  • 10
  • 32
  • 47
10
votes
1 answer

grafana: Alerting when sum of values in a day is less than half the sum from the day one week ago

I have a metric foo.bar that is incremented (+1) many times a day. The number of times the metric is incremented across a day is x. I want to detect whether there is something terribly wrong by alerting when x on the most recent full 24 hour period…
lf215
  • 1,185
  • 7
  • 41
  • 83
10
votes
2 answers

Recover configuration of Grafana-docker persistent volume?

I did a Grafana-docker deployment with persistent storage as said in their GitHub for doing tests for my company. I did exactly as they say (I paste) and it works: # create /var/lib/grafana as persistent volume storage docker run -d -v…
xCovelus
  • 578
  • 1
  • 9
  • 20
10
votes
1 answer

If I know Kibana, can I use Grafana?

I have experienced using Kibana before. However this time, I'd like to try using Grafana. Does my experience guarantee that I can learn Grafana easily? Or is it a whole lot different from Kibana? Please correct me if I'm wrong but so far, according…
noobalert
  • 855
  • 3
  • 10
  • 24
10
votes
1 answer

Sum multiple metrics without summing over a wildcard?

I have the following metrics: folsomite..cache.hit1 folsomite..cache.hit2 folsomite..cache.miss1 folsomite..cache.miss2 folsomite..cache.miss3 (The caching library I'm using has 2 flavours of hit: first-chance and…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380