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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Filtering vector in promql

I have a counter metric which may exist in a number of namespaces. If I need to calculate the rate for it, I can use: irate(counter{namespace="green"}[30m]) and that works fine. However I ...
StasM's user avatar
  • 10.6k
1 vote
1 answer
25 views

Grafana regex to capture two groups

I have a list of database names to capture in grafana: db1-producion db2-production production-aa-db3-cluster production-aa-db4-cluster So one group is <name>-<environment>, another ...
Ricardo's user avatar
  • 195
0 votes
0 answers
5 views

Promethus/Grafana Histogram_quantile never shows data from le="+inf" bucket

I'm trying to understand how many requests are served in over 10s for a service. To get a sense of the latency distribution overall, I look at the Heatmap in Grafana for this query. (sum by (le) (...
Scott Napolitan's user avatar
0 votes
0 answers
15 views

can we capture the cluster details of eks/ec2/kubernetes/local kubernetes cluster using open-telemetry--prometheus--grafana stack? [closed]

I am new to devops. Trying to build a solution which will capture all the cluster details (pods/cpu/memory etc.). It can be done using promethus-grafana stakc but want to use open telematory as well ...
Deepak Sharma's user avatar
0 votes
0 answers
18 views

when we apply avg(increase(metric)[]) , i want to filter the vectors

we have a time series which has a tag named activity_id , which is unique everytime we run.. so suppose a vector started the vector value didnt reset or die so when the next time we start another ...
Sanjay Suresh's user avatar
0 votes
0 answers
10 views

How to alert against multiple AWS SQS queues in Grafana?

Context: I'm using Grafana to monitor and alert against data in my AWS environment. I need to be able to trigger an alert whenever the ApproximateAgeOfOldestMessage metric in any of my SQS queues ...
Prithvi Boinpally's user avatar
1 vote
1 answer
25 views

Can Mimir read secrets from Volume mounts? [closed]

We have kyverno on our work k8 cluster with a policy that says Secrets must not come from envFrom statements. So I am trying to setup mimir-distributed chart (version 5.1.0) to use secrets from ...
Phil's user avatar
  • 775
0 votes
0 answers
15 views

Opentelemetry in grafana / prometheus

I've successfully implemented an endpoint in C# to send OpenTelemetry messages. However, I now need guidance on configuring the remaining components of the system. Specifically, I believe I need to ...
Mohammed Iliyas patel's user avatar
0 votes
0 answers
8 views

Grafana with Lucene - calculate percentage of representation per channel

I need to show on Grafana count of all rows and project the total in all lines: In prtsrc I have the count of channel and need show one column with total, for example in this case: Channel Count ...
Felipe Tasso's user avatar
0 votes
0 answers
9 views

Grafana value_string not in alert template anymore

I am using Grafana for alert messages based on prometheus datasource conditions. Since update to Grafana 10 the alerts do not contain the value_string anymore. My understanding is that the ...
Neneil's user avatar
  • 105
0 votes
1 answer
19 views

Grafana shows inconsistent behavior when changing time interval

I have these two queries, fetching Loki logs 1: sum(count_over_time({container="pippo", namespace="family"} |= `fancy logs` [5m])) 2: sum(count_over_time({container="pippo&...
HAL9000's user avatar
  • 3,562
0 votes
0 answers
14 views

Prometheus Query when a service is restarted

I need to create a prom alert for when a service of pcf app is restarted. Can someone help me query it? I tried the below query. But, It's showing o/p single time. resets(max(process_uptime_seconds{}) ...
NITHISH R's user avatar
0 votes
1 answer
26 views

How to combine more (at least three) metrics and count result

I need to combine three existing metrics (kube_pod_labels, kube_namespace_labels and kube_pod_status_phase). The fields I need to use are: kube_namespace_labels: namespace, team kube_pod_labels: pod, ...
Pat's user avatar
  • 401
1 vote
0 answers
16 views

Display difference between 2 timestamps

I'm using PostgreSQL as Grafana's data source. In my database I have a record which contains JSON data: {"start": "1695668520", "end": "1695810577"} In my ...
Frendom's user avatar
  • 528
0 votes
0 answers
27 views

how to create the grafana templating variables for dynamically switching to required labels

enter image description hereI have created a dashboard for the DCGM metrics to see the notebooks gpu usage and all. For that I have the following query sum(DCGM_FI_DEV_FB_TOTAL) by (exported_pod) * ...
kumar's user avatar
  • 1
0 votes
0 answers
13 views

In a table chart : stuck on how to sum a specific value by a chosen category

First of all, I'd like to make it clear that I'm a rookie and that I'm taking things one step at a time. Hope you'll help me cause I'm stuck for couple of days ;) Here my question based on the screen ...
Alexandre Leprevost's user avatar
1 vote
1 answer
15 views

Filter Prometheus metrics by label of another metric

Let's say I have the following metrics: system_cpu_usage{hostname="host1"} 10 system_cpu_usage{hostname="host2"} 92 system_cpu_usage{hostname="host3"} 95 ...
Botch's user avatar
  • 461
-1 votes
0 answers
14 views

are there any tools that can be used to create and embed Grafana-like visualizations in other websites? [closed]

I am not. Is there an option like a web app to replica grafana time series?
BobSfougaroudis's user avatar
0 votes
0 answers
12 views

Chunks & indexes not getting deleted from cassandra storage even after setting retention period

Below is my schema config for loki schemaConfig: configs: - from: 2023-09-24 index: period: 24h prefix: loki_index_ chunks: prefix: chunk ...
Sunilsai's user avatar
0 votes
0 answers
32 views

Grafana cannot retrieve logs (and labels) from Loki

I have Docker Swarm environment with several nodes, one of them called gateway. On all nodes installed Docker Plugin grafana/loki-docker-driver:2.9.1 instead of using Promtail. I used Portainer ...
aalexren's user avatar
  • 133
0 votes
1 answer
30 views

Grafana API Keys option not available

The API option under Administration is not available for me, I am using docker image (grafana/grafana) installed on a VM. [Image showing the said option not being there][1] [1]: https://i.stack....
Someone Alter's user avatar
-2 votes
0 answers
20 views

How to create alert for websites in grafana(2023 Latest) - Based on error code

To the best of my knowledge, Grafana currently supports alerts for graph visualization exclusively. However, I'd like to set up alerts for my website, triggering an alert when the status code is 200 ...
Rohan Sirohi's user avatar
1 vote
0 answers
16 views

Setting Grafana Variables with InfluxDB

I'm studying Grafana with InfluxDB. Multiple devices that I didn't set up appear. I want to show only 1 device "69EAAA97", how can I do this? Plus, there are lots of signals what I don't ...
Neoguri's user avatar
  • 31
0 votes
0 answers
39 views

Grafana Failed to evaluate queries and expressions: input data must be a wide series but got type not (input refid)

I have one clickhouse script: SELECT d AS day, awg_redirect_id, count(*) AS hits FROM input_data.dil WHERE puid IS NOT NULL AND day >= toDateTime($from) AND day <= toDateTime(...
howtoplay112's user avatar
0 votes
1 answer
48 views

What does vertical yellow dashed line mean in grafana panel for alerting

As I understand, If an alert is triggered, a red vertical dashed line is drawn (not shown in the figure) If an alert becomes OK, a green vertical dashed line is drawn. What does a yellow dashed ...
zyxue's user avatar
  • 7,946
0 votes
0 answers
56 views

How increase function in promql is calculated? [duplicate]

I have promql query aggregator_unavailable_apiservice_total Which is giving following data in grafana when I ran query in grafana. Please find the provided screenshot. After using this query I am ...
akhil's user avatar
  • 1,701
0 votes
0 answers
7 views

Sum of last value InfluxDB

I am trying to make a graph for the availability of machines. For example, I want to know that at 4pm, 10 machines were used, and at 7pm, nothing was used. To do so, I started sending points to ...
Androz2091's user avatar
  • 2,941
0 votes
1 answer
20 views

How to push Graphite metrics to Grafana Cloud with curl?

I'm trying to get a very simple example of pushing Graphite metrics to Grafana Cloud using their HTTP API to work. This example comes straight from the Graphite HTTP API documentation: user_id=<...
Raine Revere's user avatar
  • 31.1k
0 votes
1 answer
17 views

How to extract systemd unit/service name from journal logs in Grafana?

I'm visualizing my systemd journal logs in Grafana, which I send using Promtail and store in Loki. I'd like to be able to see the systemd unit or service name that has generated each log entry in ...
Luis Falke's user avatar
2 votes
1 answer
31 views

Why function increase returns unexpected result?

I have promql query process_resident_memory_bytes{job="integrations/kubernetes/kube-apiserver", cluster=~"my-cluster"} Which gives following data in grafana portal Timestamp ...
akhil's user avatar
  • 1,701
0 votes
0 answers
17 views

Can I join a prometheus query to a postgres query to get metadata?

I have a prometheus query that returns time series data along with a single label that I've grouped by: sum by(object_id) (increase(my_metric[$__rate_interval])) != 0 I have this visualized in a pie ...
Ed T's user avatar
  • 410
-1 votes
0 answers
11 views

Monitoring custom events/telemetry from python apllication [closed]

I have a python based application which keeps appending a metrics CSV log file (example below) as long as its running. I want to create a visualitation solution where certain metrics can be monitored ...
ankit patel's user avatar
  • 1,407
1 vote
0 answers
10 views

How to debug Grafana Message templates for alerts?

I am currently trying to create a Grafana alert for each log in elastic that contains fields.alert:1. The alert itself works, but now I dont want to use the default message template. I tried to come ...
TeaJ's user avatar
  • 33
0 votes
1 answer
28 views

Combining results from two InfluxDB Flux queries in a single Grafana table

I'm using Grafana with InfluxDB and I've encountered a problem when trying to visualize the results of two different Flux queries in a single table. I have two Flux queries: one fetches the used ...
Luis Falke's user avatar
1 vote
1 answer
34 views

Two y axis in Grafana

I want to have two y axis with the same x axis time. For example I have one y axis with power in kW and the other y axis with SoC in percentage % , This is the code that I have to plot the charging ...
Saajid Rameez's user avatar
0 votes
0 answers
12 views

How can I Connect a postgres Database Inside Cloud9 IDE to Grafana and pgAdmin?

I'm currently working within the Cloud9 IDE developer environment, and I've created a database inside it. Now, I'm trying to establish a connection between this database and both Grafana and pgAdmin. ...
Denis Ouma's user avatar
0 votes
0 answers
16 views

Grafana and input syntax error with Postgres

Good morning, I'm encountering an error while setting up a dashboard in Grafana using a Postgres db as datasource. The graph is based on the following query: SELECT COUNT(codice_intervento) FROM ...
Akr0n's user avatar
  • 13
0 votes
1 answer
14 views

Loki docker client is not sending logs to Grafana cloud's preconfigured loki datasource

I have followed the steps mentioned here https://grafana.com/docs/loki/latest/send-data/docker-driver/configuration/ for sending logs from docker compose containers to grafana cloud's preconfigured ...
Rajeev's user avatar
  • 193
0 votes
1 answer
32 views

Containerized Grafana unable to connect Containerized Prometheus

I am getting the following error when trying to connect Prometheus to Grafana. Post "http://localhost:9090/api/v1/query": dial tcp 127.0.0.1:9090: connect: connection refused - There was an ...
Allen Hui's user avatar
1 vote
0 answers
22 views

Grafana Datediff with Synapse Datasource

I have a simple query that works within Azure Synapse using its built-in MySql Server: SELECT TOP (15) cast ("Betriebstag" as DATETIME), CONVERT (VARCHAR, "Betriebstag", 34) as ...
Max86's user avatar
  • 65
1 vote
0 answers
26 views

Having a dynamic variable depending on another variable in Grafana

Lets suppose I have a grafana dashboard with 2 variable dropdowns options and suboptions where the values for the dropdown suboptions changes depending on the values of the options dropdown. Is there ...
Nmaster88's user avatar
  • 1,433
0 votes
1 answer
20 views

grafana: count pods by namespace and namespaces' label

I'd like to ask how to count all pods in namespaces by namespaces' label value. The structure is: namespace has 'teamName' label to specify a team the ns belongs to pod has 'teamName' label to ...
Pat's user avatar
  • 401
0 votes
0 answers
25 views

How to filter a variable query option with regex?

I want to create a variable in grafana that queries all Subscriptions but filters subscriptions that start with a specific text. Some results I see by default are like: Dig-dev, Dig-uat, Dig-prod, ...
Nmaster88's user avatar
  • 1,433
0 votes
0 answers
21 views

Caculate latest value for Grafana dashboard

I have the following Loki query that shows me the error rate for my containers: (sum(rate({namespace="namespace", cluster="cluster", level="error"}[1m])) by (cluster, ...
Daniel's user avatar
  • 643
0 votes
0 answers
41 views

Handling special characters in Grafana variable used in regex filter

I am using Grafana for visualizing my logs and came across a specific challenge related to handling special characters, specifically the square brackets ([...]). Situation: In one of my dashboards, I ...
Luis Falke's user avatar
1 vote
1 answer
30 views

PostgreSQL: Dynamic SELECT query

I'm trying to fabricate a dynamic SQL query that will yield a table, which name is stored inside a string. Firstly, I need to split the string, because there are multiple tables. I only need the ...
Andrew's user avatar
  • 13
0 votes
1 answer
34 views

How to convert a timestamp in Grafana from a formatted string to epoch milliseconds and create a time range URL parameter?

I am currently working with Grafana and trying to create a link that redirects to another dashboard with a specified time range, which is 5 minutes before and after a certain timestamp. I have the ...
Luis Falke's user avatar
1 vote
1 answer
21 views

Apply regex on uri label of prometheus metric

I would like to plot the external API count in a graph but few of the external GET api's had query params. I would like to consider all request for a x API with query params as same and increase the ...
Rajeev's user avatar
  • 193
0 votes
0 answers
19 views

How to flatten aggregations returned by elastic search query

We're running reports over our application(s) log files, which are collected in an elastic search storage. Due to limitations in the stack, and the need to do some ETL-like transform (convert system ...
alko's user avatar
  • 46.3k
0 votes
0 answers
20 views

Grafana - Alert does not trigger due to "nodata" / "NaN"

Working on a Azure Managed Grafana setup with Azure Monitor as Data Source. After adding an alert to a panel, the alert doesn´t trigger, and the panel looks like this: The alert goes into a pending ...
objectclass's user avatar

1
2 3 4 5
113