InfluxDB.
It's About Time.
InfluxDB is the most popular open source database for developers managing time series data. Unlock real-time insights from time series data at any scale in any environment – in the cloud, on-prem, or at the edge.
Built for unlimited scale at a fraction of the cost
45x
Better write
throughput
90%
Reduction in
storage costs
100x
Faster queries for high
cardinality data
45x
Faster queries for
recent data
Compare InfluxDB open source and InfluxDB 3.0 for your workloads: Benchmarks Report
InfluxDB is purpose-built for real-time analytics
Single datastore for all
time series data
Native SQL
support
Low latency
queries
Unlimited
cardinality
Open and interoperable
with data ecosystems
Superior data
compression
import {InfluxDBClient} from '@influxdata/influxdb3-client'
import {tableFromArrays} from 'apache-arrow';
const database = process.env.INFLUX_DATABASE;
const token = process.env.INFLUX_TOKEN;
const host = "https://us-east-1-1.aws.cloud2.influxdata.com";
async function main() {
const client = new InfluxDBClient({host, token})
const query = `
SELECT
room,
DATE_BIN(INTERVAL '1 day', time) AS _time,
AVG(temp) AS temp,
AVG(hum) AS hum,
AVG(co) AS co
FROM home
WHERE time >= now() - INTERVAL '90 days'
GROUP BY room, _time
ORDER BY _time
`
const result = await client.query(query, database)
const data = {room: [], day: [], temp: []}
for await (const row of result) {
data.day.push(new Date(row._time).toISOString())
data.room.push(row.room)
data.temp.push(row.temp)
}
console.table([...tableFromArrays(data)])
client.close()
}
main()
c
Code in the languages you love
Tap into our custom client libraries, powerful APIs and tools, or build it yourself, line by line.
See All IntegrationsLoved by developers, trusted by enterprises
Looking for the most efficient way to get started with InfluxDB?
Whether you're looking for cost savings, lower management overhead while maintaining high availability, or alternatives to replace your expensive data historian, InfluxDB can help. Easily scale from open source to enterprise-grade InfluxDB.
See Ways to Get StartedInfluxDB is a G2 Leader in Time Series
“InfluxDB is a strong database built specifically for time series data. It has made working with such data seamless and easy.”
Verified G2 Reviewer Read reviews