Quantcast
Channel: InfluxDB - Grafana Labs Community Forums
Browsing all 198 articles
Browse latest View live

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 Article


Image may be NSFW.
Clik here to view.

InfluxDB 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 Article


Calculate 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 Article

Perform 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

Influx - 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 Article

Identifying 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 Article


Calculating 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 Article


Image may be NSFW.
Clik here to view.

Derived 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 Article

Image may be NSFW.
Clik here to view.

Adding 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 Article

Influx 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 Article

Help 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 Article


Image may be NSFW.
Clik here to view.

Separate 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 Article

Image may be NSFW.
Clik here to view.

GPS 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 Article


Flux 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 Article

Image may be NSFW.
Clik here to view.

Date 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 Article


Dashboards 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 Article

A 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 Article

Distinguishing 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
Browsing all 198 articles
Browse latest View live