Docs / Databases / How to Set Up InfluxDB for Metrics and Monitoring

How to Set Up InfluxDB for Metrics and Monitoring

By Admin · Mar 1, 2026 · Updated Apr 23, 2026 · 26 views · 1 min read

How to Set Up InfluxDB for Metrics and Monitoring

InfluxDB is a purpose-built time-series database ideal for storing metrics, monitoring data, and real-time analytics on your Breeze.

Installation

Install InfluxDB 2.x from the official repository:

curl -fsSL https://repos.influxdata.com/influxdata-archive.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/influxdata.gpg
echo "deb https://repos.influxdata.com/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/influxdata.list
sudo apt update && sudo apt install influxdb2 -y
sudo systemctl enable --now influxdb

Initial Setup

Configure your organization, bucket, and admin user:

influx setup \
  --username admin \
  --password YourSecurePassword \
  --org myorg \
  --bucket metrics \
  --retention 30d \
  --force

Writing Data

Write metrics using the line protocol:

influx write --bucket metrics --precision s \
  "cpu,host=breeze1 usage_idle=85.2,usage_user=10.1 $(date +%s)"

Querying with Flux

from(bucket: "metrics")
  |> range(start: -1h)
  |> filter(fn: (r) => r._measurement == "cpu")
  |> aggregateWindow(every: 5m, fn: mean)
  |> yield()

Integrating with Telegraf

  • Install Telegraf to collect system metrics automatically
  • Point its output plugin to your InfluxDB instance
  • Use the built-in dashboards to visualize Breeze performance

InfluxDB provides a high-performance metrics store for monitoring your Breeze infrastructure.

Was this article helpful?