How to get an average around an event?
Using Grafana Cloud w. Influxdb3 (cloud), so I can use either SQL or InfluxQL, but not Flux. I want to find the average value of a field (“distance”) during a one-minute period before the field...
View ArticleInfluxDB sum of all values
Hi, I’ve got this influxDB query from(bucket: "bucket1") |> range(start: v.timeRangeStart, stop: v.timeRangeStop) |> filter(fn: (r) => r["_measurement"] ==...
View ArticleCalculate machine usage in minutes or percent
Hello. I am trying to understand how to use Grafana to show machine usage. I am collecting data from our 18 machines in an influxdb database and each machine is constantly writin 1 (idle), 2 (running)...
View ArticlePerform a conditional calculation
Hello, Database used: InfluxDB I have three simple queries in flux language, with a one-day aggregation window. These three requests are then summed with Grafana with an expression: $A + $B + $C / $D....
View ArticleHow to create a histogram grouped by a tag
What Grafana version and what operating system are you using? Arch, version: 11.2.2, commit: c47b921ef40 What are you trying to achieve? I have an InfluxDB table that stores stats about my web server,...
View ArticleHow to extract value from JSON and display in separate rows or in the comma...
From InfluxDB in one column I have JSON [ { "dtcId":"31798", "ecuId":"99", "status":"ACTIVE" }, { "dtcId":"801A55", "ecuId":"86", "status":"ACTIVE" }, .... But I would like to convert it to such...
View ArticleInflux - drop the first and last rows/values from the table
Is there an easy way to drop the first and last values/rows? I was thinking something along the lines of this: |> filter(fn: (r) => r != first() and r != last()) 2 posts - 2 participants Read...
View ArticleIdentifying identical queries from different influxdb datasources
Howdy, I’ve two data sources, each running the exact same InfluxQL memory usage query, returning data in table mode. Both return a series called “mem”, the name of the measurement in question. I want...
View ArticleCalculating number of received and missing data points for time interval
What Grafana version and what operating system are you using? Grafana cloud (steady) (This is what appears when I hover over the “?” icon) MacOS Sonoma 14.5 What are you trying to achieve? Calculate...
View ArticleDerived values of an energy counter
Hi, I am using Grafana Version 9.1.6 with a similarly old, unknown version of InfluxDB¹. In this Grafana/Influx installation, I collect the numbers of various energy meters. I usually read in the...
View ArticleAdding thresholds to table panel created using flux language
Hello, Problem: I created a table using flux. When I go to “Add Threshold” colors do not show up. What I expected: I expect that when I go to “Override 1” and select the column “uptime”, I can add...
View ArticleInflux Database
am new to Grafana. I have installed Grafana , Influx and Telegraf on Ubuntu host. All services are showing running to me as mentioned below , but when I am doing influx command on cli its showe me...
View ArticleHelp with FLUX query: Duration between "Now/d" and "Now" timestamps
Hello Grafana community, I’m trying to calculate the duration interval between the “Now/d” (start of today) and “Now” (current time) timestamps using a FLUX query, but I haven’t been able to figure it...
View ArticleSeparate time scales not displaying correctly
I have an InfluxDB time series with a long time scale for the main graphs, and they seem to work perfectly fine. However, some of the graphs I only want to show for one day (1d). The graphs that are...
View ArticleGPS data from NMEA not showing in geomap
I’m trying to get my gps data to display on a heatmat in grafana. My GPS coordinates are coming from NMEA sentences in SignalK. They are then sent to InfluxDB and then finally to Grafana. When editing...
View ArticleFlux query extremely slow compard to influxql
Hi all, i have the same query doing a simple aggregation of values per month. I did the same query in flux and in influxdb (influxql has the issue that i monthly aggregations are not always on the 1st...
View ArticleDate order error in a Bar Chart
Hello I would like to now why my bar chart display an error in order of dates : As you can see, Saturday and sunday are between monday and thursday of this month. It can also be used for other days...
View ArticleDashboards not updating on load
Hi, In Grafana v11.4.0, dashboards no longer update on load when navigating back to them. For example, if I view Dashboard A, switch to Dashboard B for 5 minutes, and then return to Dashboard A, the...
View ArticleA single measurement with two y-axes
Hi, I want to display a left and a right y-axis for a series of wind speed measurements. The speed should be shown in m/s on the left y-axis and in km/h on the right y-axis. I tried to solve it by...
View ArticleDistinguishing display name for query with multiple fields
What Grafana version and what operating system are you using? AWS-managed Grafana v10.4.1 What are you trying to achieve? I’m following this: Forecasted alerts with Grafana and InfluxDB. I’d like...
View Article