Questions tagged [influxdb]

InfluxDB is an open-source time series, events, and metrics database written in Go, with no external dependencies.

Filter by
Sorted by
Tagged with
0 votes
1 answer
12 views

Will there be any limitations if we upgrade from open source InfluxDB on-premises v1.8 to open source InfluxDB on-premises v2.7.4?

I am using opensource 1.8 influxdb version. I need to upgrade and continue opensource. I have 140 GB data in 1.8. version. We need to switch to v2 opensource onpremises quickly. What are the ...
ivbtar's user avatar
  • 839
0 votes
0 answers
16 views

InfluxDB - query for current week

How can I use the boundaries.week() LINK function from the "@influxdata/influxdb-client"? The docs say I need to import import "date/boundaries but I don't know where. I need to query ...
larz's user avatar
  • 813
0 votes
0 answers
21 views

Grafana Influxdb show data cumulated for each month

I have the data from my photovoltaik power for each day and each week. Where the week starts on Thursdays and ends on Wednesdays. Now I would like to know how much I can produce in June, in July and ...
Irgendw Pointer's user avatar
0 votes
0 answers
10 views

Influx - Flux aggregateWindow returned window times

I am trying to figure out how influx is calculating the times returned from a flux query with an aggregateWindow. For example: I am doing a pretty basic aggregateWindow(every: 300d, fn: mean). If I ...
dashambles's user avatar
0 votes
1 answer
8 views

fetching specific data range from influxDb

In my application I am displaying data fetched from influxDb, in a table. The table has pagination and the max number of row for each page is 10. I am fetching initial data in a 100 item packages. ...
m-alptekin's user avatar
0 votes
0 answers
27 views

Issue with sending data from databridge in EMQX to Influxdb

I`m having an issue with sending data to my bucket in influxdb through a databridge in emqx which is subscribed to an mqtt broker. it keeps saying unexcepted API access in the emqx log. This is the ...
Nathan Samson's user avatar
0 votes
0 answers
15 views

How to write a Flux task to calculate multiple percentiles in one go?

I am trying to write a Flux scheduled task in InfluxDB to sample monitoring data points over a period of time and obtain percentiles. Here is the code I have so far: from(bucket: "dev-10s") ...
rainge's user avatar
  • 1
0 votes
0 answers
12 views

telegraf json serializer converts float to int when decimal part is 0 e.g. 1.0

In Telegraf, due to json specifications, the float field is truncated telegraf.conf [[inputs.execd]] command = ["/Users/test/tick/count_float.sh"] [[outputs.file]] ## Files to write to, &...
dganesh2002's user avatar
  • 1,937
1 vote
0 answers
23 views

Write data to influxDB cloud with MicroPython

i want to write some sensor data with my raspberry pico w to my influxDB cloud. I saw there is a way to manage that by using the influxDB client with python. As far as I know there is no way doing ...
FloHaschke's user avatar
0 votes
1 answer
19 views

InfluxDB query not returning desired sum across data when using group by time

I am trying to get the total shard sizes from the _internal InfluxDB database. The field is called diskBytes, and it is stored every 10 seconds by default. It is queried by something like SELECT ...
teeeeee's user avatar
  • 705
0 votes
0 answers
10 views

Is there an Flux (InfluxDB) query or function to match IP addresses against CIDR/subnet addresses?

the current Flux query works fine for individual IP addresses: from(bucket: "nfCollector") |> range(start: v.timeRangeStart, stop: v.timeRangeStop) |> filter(fn: (r) => r["...
rofz's user avatar
  • 91
1 vote
0 answers
24 views

How do I check if an influxdb query returns no records in Go?

I have a simple query which retreives measurements for a given a time frame: query := fmt.Sprintf(`from(bucket: "mybucket") |> range(start: time(v: %d), stop: time(v: %d)) |> ...
elsni's user avatar
  • 1,973
0 votes
1 answer
25 views

how to persist data with docker-compose?

I am building a docker-compose including influxdb and grafana for my team. Here is what I was able to create : services: influxdb: image: influxdb:2.7.3 ports: - '8086:8086' - '...
theirman's user avatar
0 votes
0 answers
9 views

Influxdb, flux query, bucket contains 2 string columns, how to get average of count of columns

I have a bucket with multiple tags, measurements and fields. Mostly fields contains string values. Example, car country manufacturer gearboxtype etc. I want to take average in such way: What is the ...
Vivek Sagar Pandey's user avatar
0 votes
0 answers
10 views

Graphing in Grafana a Philips Hue motion sensor json “last update” trouble

I pull some json data from my Hue and get the sensors “last updated” as date and time and “presence” true / false. I have converted the date/time to unix time stamp and pushes this data to an influx ...
Jonas's user avatar
  • 3
0 votes
0 answers
17 views

InfluxDB API token concept

I am using InfluxDB OSS v2 for a small project, but did not quite understand how API tokens and users should be used. Goal Having a setup that follows the least privilege principle. This should ...
Damian Kopp's user avatar
0 votes
0 answers
25 views

OpenTelemetry with InfluxDB and without Collectors

I am new with OpenTelemetry. I have a Springboot App where I added opentelemetry boot-starter dependency: <dependency> <groupId>io.opentelemetry.instrumentation</...
Lamming's user avatar
  • 11
0 votes
1 answer
46 views

how to build influxdb rust source?

I am a bit surprised that InfluxDB official document does not give an step by step guide to build its rust code base. I have found How to compiling InfluxDB from source code. However it's talking ...
neuron mac's user avatar
0 votes
0 answers
7 views

Get mode of _value column in Flux query

How to get mode of column values where column is either true or false (boolean) ? from(bucket: "monitor") |> range(start: 0) |> filter( ...
Abdul Anzil's user avatar
0 votes
0 answers
6 views

how does influxdb achieve time alignment?

Use influxdb to implement queries similar to the following: select a.x, b.y from A a, B b where a.timestamp = b.timestamp; You must know that the time column unit of the two tables A and B is ...
Edison's user avatar
  • 1
0 votes
0 answers
35 views

impot data from pandas dataframe to influxdb, but only get a measurement name, fields get nothing

for index, row in df.iterrows(): point = Point("measurement2") \ .time(index, WritePrecision.NS)\ .tag("tag_key", "1") \ .field("hex"...
Reese G's user avatar
0 votes
0 answers
10 views

Influx query to find datapoints that are preceded and succeeded by a zero value

I'm relatively new to influx, but need to find 'glitch' datapoints in a dataset. These are where data is zero for a while, then a single non-zero value, then zero again. How could I write a query for ...
askvictor's user avatar
  • 3,661
0 votes
0 answers
6 views

Import csv to influx

I need to correct some data in my Influx DB and succesfully exported using: influx -database graf -username graf -password graf -format csv -execute "select * from net2 where "host" = '...
imac's user avatar
  • 47
0 votes
0 answers
9 views

Issues with TTN Data over Telegraf to InfluxDB

My data of my applications is being sent from the The Things Network to the MQTT server which I confirmed using mosquitto. I then configured Telegraf to scrape the data from the MQTT, which when ran, ...
Will Conway's user avatar
0 votes
0 answers
19 views

How to provide tls cert in Influxdb C#

I use nuget library for both version for InfluxDB v2.0+: InfluxDB.CLient for InfluxDB v1.7 and below: AdysTech.InfluxDB.Client.Net.Core I have the cacert.pem, client.crt, and client.key what ...
dibii's user avatar
  • 27
0 votes
0 answers
16 views

Grafana Panel to send data to InfluxDB

I would like to ask a question regarding flux and Grafana. Is there a panel in Grafana that allows someone to write data to InfluxDB using Flux or InfluxQL, if there is please point me to the ...
Zander007's user avatar
2 votes
0 answers
23 views

Is it faster to access data from different buckets or measurements?

I have a web application that saves time series data to InfluxDB and queries it frequently. I have an entity in my business model called "Assets", and they each have different time series ...
Diego L's user avatar
  • 253
0 votes
0 answers
23 views

How to filter from start of the current year in InfluxQL

In InfluxQL (not Flux) I'm trying to do a simple WHERE clause, selecting all values from the current year. I do not want to hardcode the current year. I tried expressions like: WHERE time >= '' + ...
Nik's user avatar
  • 1,121
-1 votes
0 answers
20 views

Not getting data of clustered server InfluxDB grafana , total 3 server clustered but getting data from2 servers only [closed]

I have a Proxmox server with a cluster of three different servers, each having its own unique public IP address. InfluxDB is set up on Proxmox server 3, which operates within the IP range 192.168.13.1/...
Rohan Sirohi's user avatar
0 votes
1 answer
50 views

Tag virtual users in k6

Is it possible in k6 to tag virtual users? I launch several k6 tests at once, and in my Grafana I want to see different graphs for virtual users joining the test. However, now I can only see the ...
stupid_beaver's user avatar
1 vote
1 answer
52 views

How Do I Insert A Bash Variable Into A Value on InfluxDB? [duplicate]

I am trying to do the following: influx -database 'polls' -execute 'insert nodeMemory,NodeID=1,server=server01 values="$nodemem1"'] I get the following errors: ERR: {"error":"...
skinfrakki's user avatar
0 votes
0 answers
20 views

how to get the second last value with influxDB?

I'm configuring my Grafana for my server, and I'm trying to calculate a percentage change between the last two values of the download_bits column stocked in an InfluxDB column. My problem is as ...
Antoine Faure's user avatar
-1 votes
0 answers
21 views

Influxdb Cloud TSM Back-up to AWS S3

I use influxdb cloud(tsm) with AWS. I want to back up my data into aws S3 weekly. I tried to use influxdb cli, but I encountered the following error. Error: influxdb oss-only command used with ...
mukara's user avatar
  • 7
0 votes
0 answers
19 views

How do I permanently merge two influxdb series data into one series?

I have to work on an InfluxDB v1.8 instance that seems to hold too many series (at leasts after a quick peek at a SHOW SERIES result, but I'm still investigating). Given that two different series ...
watery's user avatar
  • 5,106
0 votes
0 answers
8 views

Having issue while inserting data in influxdb using python client

measurement = "measurement" for column in df.columns: for index, value in enumerate(df[column]): point = Point(measurement).field(column, value).time(df['unix_time_column'].iloc[...
Abdullah Tahir's user avatar
0 votes
0 answers
51 views

using telegraf with plugin http , Error x509: certificate signed by unknown authority

I Use Telegraf with http plugin [[outputs.http]] url = "https://example.com/test/rest/login" method = "POST" tls_ca = "/etc/telegraf/ssl1/cert.pem" tls_cert = "/etc/...
Hossein Rahmati's user avatar
0 votes
1 answer
46 views

Sending message to telegram in influxdb

I'm trying to follow this example https://docs.influxdata.com/flux/v0/stdlib/contrib/sranka/telegram/message/. My query is almost the same: import "contrib/sranka/telegram" token = "...
Andrey Khataev's user avatar
0 votes
0 answers
23 views

Unable to create Influx DB directory

I'm trying to create a InfluxDB for a school project and am struggling to create the directory. Every time I've tried to create the directory it always brings up this error about that it failed the ...
Nathan Samson's user avatar
0 votes
0 answers
13 views

InfluxDB schema/measurement design

I'm using the Influx C# Client to add some telemetry to a server application. Should I create multiple measurements to capture the different types of events eg. sql_connection_error, user_login etc. ...
Sam Coulter's user avatar
0 votes
0 answers
13 views

Grafana and InfluxDB alert issue

We are trying to create grafana alert using InfluxDB connection. In the alert rule we are getting only numeric values data but we are unable to fetch character/string values(getting null data). In ...
Krishna Reddy's user avatar
2 votes
1 answer
21 views

How can I load data into QuestDB using the InfluxDB Client Library?

I have a lot of code written using the InfluxDB Java Client, but want to migrate my database to QuestDB without having to change my code. The InfluxDB client libraries use HTTP as a transport method ...
sklarsa's user avatar
  • 31
0 votes
0 answers
29 views

SQLite - create standalone sequence (get autoincrement integer without the need of having table)

I am trying to fix an issue with InfluxDB, where it does not support sequences (unique, incremental Integer column). The workaround I have "invented" is, to create an unique Id outside of ...
rRr's user avatar
  • 378
0 votes
0 answers
20 views

Unable to get statistical units in cloudwatch when sending pgbouncer metrics through telegraf to cloudwatch

Cloudwatch Metric Dashboard with No units this is the configuration I am using to collect metrics local psql pgbouncer db to Cloudwatch, this is working perfectly, but not getting units for the ...
venkata vendra's user avatar
1 vote
1 answer
83 views

How to modify the influxdb line protocol data during mqtt to influxDB point using telegraf

I'm new to mqtt, time series databases and all vps, iot networks. I have setup a VPS for Ubuntu 20.04 and installed mosquitto as mqtt agent, telegraf as the bridge, influxDB as the time series ...
Gimhana Jayasekara's user avatar
0 votes
0 answers
32 views

InfluxDB compute total time in each state

I'm logging state changes to InfluxDB. My data looks like this: 2:00:00 STATE1 4:00:00 STATE2 9:00:00 STATE3 10:00:00 STATE1 14:00:00 STATE2 15:00:00 STATE3 I'm using Grafana to ...
Joseph Nuttall's user avatar
0 votes
0 answers
12 views

Optimizing Initialization of InfluxManager in Flask Endpoint

Title: How to Optimize InfluxManager Initialization in Flask Endpoint for Improved Performance? I have a Flask endpoint that looks like this: @api.route("/api/peripherals/last_data", methods=...
Nir Vana's user avatar
  • 397
1 vote
1 answer
34 views

Joining multiple Prometheus sources into one table with Flux

Very new to DB technology and SQL but I've been trying to create a table using Flux that scrapes from multiple Prometheus data sources. Each row needs to represent a single Prometheus source with each ...
wokidoo's user avatar
  • 11
0 votes
0 answers
10 views

Influx Dasboard Data Period vs. Window Period

I have a Graph in a Influx Dashboard and the length of the plot doesn't match with the window. Why not? The plot goes until 2021 Oct 10, but the Window goes until now Shouldn't this match ...
KSPR's user avatar
  • 2,262
0 votes
0 answers
26 views

Flux aggregate function to calculate the difference stops at specific date

I'm trying to learn the flux query language for InfluxDB. I'm using InfluxDB OSS 2.7. I have a time-series with water consumption usage from iobroker. It reports an ever increasing number in liter and ...
FloS's user avatar
  • 1
0 votes
0 answers
32 views

influxdb_client.InfluxDBClient: OSError: [Errno 113] No route to host Raspberry

I have written a software that is supposed to cyclically write sensor data into an InfluxDB. I can run the software on my computer (Windows) and on a virtual machine (Ubuntu), and it works fine. I use ...
Christian Möllers's user avatar

1
2 3 4 5
61