5,912 questions
0
votes
0
answers
40
views
Is it possible to use the trace status as a field in visualisations based on a Grafana Tempo data source?
I have traces going into Grafana Tempo. The traces are not collected by one of the standard collectors; I'm using the OpenTelemetry SDK to generate custom spans, but I don't think that matters.
I'm ...
0
votes
0
answers
45
views
Infinity datasource baseUrl, token and id/secret not visible in Grafana UI [closed]
I'm using Grafana Operator to provision a Grafana Infinity datasource (plugin version 3.6.0, Grafana v10.4.8+).
The datasource gets created successfully and shows up in the Grafana UI, but the Base ...
-1
votes
1
answer
51
views
Grafana graph plot data only once instead of again and again metric java
I have implementation on java and Grafana/prometheus
From our java service we are ingesting payload to grafana and it plots
I have defined a Metric using java
public class MyPayloadService {
...
0
votes
0
answers
36
views
PromQL query to Count and group in Grafana
I'm using the openstack_exporter and I'm trying to show the number of routers per network node but having trouble working out how in promQL I can work this. In the openstack_neutron_l3_agent_of_router ...
0
votes
0
answers
112
views
Grafana DatasourceNoData issue
Grafana Alert - Daily Auto-Resolving Issue
I'm experiencing a recurring issue with a Grafana alert that triggers daily and then auto-resolves a few minutes later.
Details:
Trigger Time: 12:21 AM
...
1
vote
1
answer
51
views
Remove entries from results based on multiple criteria
When i have a search like
{env="PROD"}
| logging_level =~ `ERROR|WARN`
And have the label "logger"
How can i say the following:
Lines with the logger FirstLogger should be ...
1
vote
0
answers
49
views
DynamoDB to Athena - dynamic schema detection for evolving "map" field
In AWS, I have a DynamoDB table with one of the fields as a map (my_map). This table is exposed to Athena, so data can be queried there (and eventually in Grafana).
The Athena table shows a schema ...
0
votes
1
answer
173
views
Promql warning: metric might not be a counter doesn't make sense
I have this promql query:
avg by (instance)(rate(fusion:node_cpu_seconds_total:foo{mode="steal"}[5m])) * 100
and I get lots of data, but then I get this at the end:
{
"infos": [
...
4
votes
0
answers
231
views
How to configure Grafana Alloy to set Loki tenant dynamically from log labels?
I’m running a multi-tenant Loki setup and sending logs through Grafana Alloy.
I need Alloy to set the X-Scope-OrgID header dynamically so that each log stream is stored under the correct tenant. ...
1
vote
1
answer
60
views
How to handle Grafana "All" option with QuestDB without expanding all variable values?
I'm using Grafana with QuestDB and have a multi-value variable element with "All" option enabled. When "All" is selected, Grafana expands all values in the WHERE clause:
-- Current ...
3
votes
1
answer
113
views
Prometheus/Grafana: increase() spikes during Kubernetes deploys with multi-pod counters (dynamic labels)
Context
Java service in Kubernetes, multiple pods.
Metrics exposed via Micrometer + Prometheus.
Grafana dashboards use increase(...) and sum by (...) to count events in a time range.
Counters are ...
0
votes
0
answers
60
views
How to filter out the timestamp from cri-o logs?
I'm trying to setup multiline log parser in fluentbit. But I'm currently encountered a problem with parsing. Can anyone help me?
I'm deploying Fluent Bit in Kubernetes and pipe the logs to Loki and ...
0
votes
1
answer
126
views
What regex flavor does Grafana use?
This source from the Grafana forum said that Grafana uses the golang regex flavor.
I'm trying to extract a key value pair from the format:
(Foobar -- 48)
After following the Grafana doc on Extracting ...
0
votes
0
answers
42
views
Telegraf Error in plugin: connect failed: error validating input: server does not support an endpoint with security:None
I try to create an docker compose stack involving InfluxDB, Telegraf and Grafana. To gather some test data i have used this basic test server: https://github.com/gabrielmbmb/opcua-test-server
However, ...
0
votes
1
answer
56
views
How to convert string "false" and "true" to numeric 0 and 1
How do I convert string "false" and "true" to numeric 0 and 1 within Grafana?
I need to do this to then summarize a row or a column and get a count of trues.
I tried using "...
0
votes
0
answers
50
views
Loki Alerting – Inconsistent Data in Alert Notifications
Setup:
I have configured an alert to send data if error requests are above 2%, using Loki as the datasource. My log ingestion flow is:
ALB > S3 > Python script downloads logs and sends them to ...
0
votes
0
answers
94
views
Count unique users in the last 30 days - Promtail, Loki, and Grafana
I have a Kubernetes cluster with Promtail, Loki, Grafana, and Prometheus installed. I have an nginx-ingress that generates logs in JSON. Promtail extract the fields, creates a label for http_host, and ...
1
vote
0
answers
54
views
Most appropriate PromQL function and corresponding panel type on grafana for methods with @Timed
I am using @Timed from micrometer-core on a few methods to capture the response time of methods in a very simple way like this - @Timed(percentiles = {0.50, 0.95, 0.99, 0.999})
It is a spring-boot ...
0
votes
0
answers
61
views
Alert rule that fires when the count value/output of a query changes
I have a widget that shows with the number of gateways that haven't been seen (not been online) for >= 2 days (The output is basically the most recent refreshed date and the value, aka the count of ...
1
vote
0
answers
39
views
Grafana settings
I am creating a Grafana dashboard to display some prometheus metrics. I was able to create a Variables in Settings, which is a list of endpoint. So in the dashboard, each graph could display specific ...
0
votes
0
answers
42
views
topk 10 function in PromQL query
I was able to use the below query to list the top 10 CPU utilization in grafana, which works fine. However, in an alerting system, there is no alert generated.
topk(10, 100 - (rate(...
0
votes
0
answers
36
views
Grafana Stat Visual String as Value an a Boolean Variable as Color
I try to click a Grafana Dashboard together with a Stat Visual showing a Field "platyp" String and a boolean Field "still" to color the background red by false and Green by true.
I ...
-4
votes
2
answers
199
views
How do I get a weekly time series on Grafana? [closed]
I am using MariaDB and Grafana to keep track of weekly consumption totals, but Grafana does not recognize this date format "DATE_FORMAT(`Timestamp`, '%Y-%u') AS Week" as a time field.
The ...
0
votes
1
answer
312
views
Grafana Prometheus legend add custom column field from a label
Is it possible to put a value of a label on a Legend?
I used Legend option in my query to format Name to {{__name__}} - {{env}} but I would rather have a separate column for {{env}} instead. Is it ...
2
votes
1
answer
138
views
Displaying multiple OpenShift clusters version within grafana
I want to make a pie chart where I display the current versions of available OpenShift clusters. The clusters uses remote_write to a central Thanos instance, from where we can use promql to query ...