What are some good rules and examples of how to choose between storing data in fields vs. tags when designing InfluxDB schemas?
What I've found so far is:
a measurement that changes over time should be a field, and metadata about the measurement…
I'm looking into installing a timeseries database like InfluxDB or Prometheus to handle data for our Grafana monitoring system.
One of the things I like to do is run a couple of MySQL queries every few minutes to gather business metrics (like number…
The model is [(stock_id, period, ts), open, high, low, close, last, volume]
We write new prices for all stocks (120,000) each minute and delete old once when they go out of retention time. It doesn't matter if retention cleanup will happen…
I know this has been asked a lot of times and I've checked almost all of the links out there but just want to have a third-party opinion on our use case.
So I'm working for an IOT company and we already have prometheus installed on our servers.…
I deployed on docker InfluxDB v 1.8.10 with command:
docker run --name influxdb -t
-e INFLUXDB_HTTP_AUTH_ENABLED=“true”
-e INFLUXDB_DB=“mydatabase”
-e INFLUXDB_USER=“user”
-e INFLUXDB_USER_PASSWORD=“user”
-e INFLUXDB_ADMIN_USER=“admin”
-e…
According to this article the only real benefit influx has over postgres (using time-based indices) is space used. PostgreSQL is more performant, with time indices.
Why would one use influx-db over postgresql, then?
I heard from someone that…
I'm trying to get the kWh from multiple entities in InfluxDB in Grafana. I have the following raw query.
SELECT ("a" + "b") / 3600000 FROM (
SELECT spread("watt_seconds") AS "a" FROM "W"
WHERE ("entity_id" = 'cabana') AND $timeFilter…
I'm trying to insert some lines into a InfluxDB instance (running on Windows 7 x64) from both a .txt and a .csv file, but it's only inserting the last line on the file.
I'm currently using the Insomnia interface to send the file through Influx's…
Let's start with an example. I've got an application that logs a point every minute. When I aggregate this data into a query where I'll have the count of logs per day, I get the following result. Keep in mind, that the query and the data is in…
With version 5.0 MongoDB's specialized Time Series Collections were introduced to deal with such data. As I already stored some sensor meta data (configuration, specification ...) in MongoDB, I decided to make use of these special collections to…
I have an InfluxQL query (Influxdb 1.8) & it takes a lot of time for it to finish even on c5.4xlarge with Intel Xeon Platinum 8000 with Turbo CPU clock speed of up to 3.6 GHz + EBS io2 with 16k iops available.
But when I look at htop I see only 1…
I have a bucket with the raw data of several sensors, things like temperature, air pressure and etc. The sensors don't send their data at the same time, which means that a given timestamp might have several data points from various sensors or just…
We are new to InfluxDB, and are struggling to understand the query performance difference between a "tag" and a "field" for storing simple, time-stamped measurement values (literally, time series data). I have to imagine this is one of the most…
I have an influx database with one tag key (called machine) and multiple field key (called cpu and memory). I want to be able to find all unique tag values for each field key or filled field keys for a given tag value.
Here is an example of…
I have the following columns:
'datetime', - which gives the time when the sensor values are recorded.
'machineID', - which gives the machine ID of the machine from where the sensor values are recorded.
'volt', 'rotate', 'pressure', 'vibration' - 4…