Categorygithub.com/fagnercarvalho/prometheus-iotdb-exporter
repositorypackage
0.0.0-20210313030641-f2fa9262f508
Repository: https://github.com/fagnercarvalho/prometheus-iotdb-exporter.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

IoTDB Server Exporter Github Actions

Go Report Card Go Reference Docker Pulls GitHub go.mod Go version Codecov

Prometheus exporter for IoTDB server metrics.

Supported version: 0.11.0.

Running (Linux)
export IOTDB_PASSWORD=root
./prometheus-iotdb-exporter <flags>
Running (Windows)
set IOTDB_PASSWORD=root
prometheus-iotdb-exporter.exe <flags>

Then go to localhost:8092 to see your metrics.

Flags
NameDescriptionDefault
listenPortexporter listening port8092
iotDBHostIoTDB server host127.0.0.1
iotDBPortIoTDB server port6667
iotDBUsernameIoTDB usernameroot

For security reasons the server password needs to be set by using IOTDB_PASSWORD environment variable.

Metrics
NameMetric NameDescription
Write Ahead File Sizeiotdb_write_ahead_file_size_bytesWrite Ahead File Size (extracted from the root.stats.file_size.WAL time series) in bytes. For this metric to be collected the enable_stat_monitor option must be enabled in the /iotdb/conf/iotdb-engine.properties config file. To update the config file check the server_example folder.
System File Sizeiotdb_system_file_size_bytesSystem File Size (extracted from the root.stats.file_size.SYS time series) in bytes. For this metric to be collected the enable_stat_monitor option must be enabled in the /iotdb/conf/iotdb-engine.properties config file. To update the config file check the server_example folder.
Storage Group Countiotdb_storage_groupsStorage group count
Timeseries Countiotdb_time_seriesTimeseries (across all storage groups) count
Users Countiotdb_usersDatabase users count
Docker

You can deploy this exporter by using the fagner/prometheus-iotdb-exporter Docker image.

docker pull fagner/prometheus-iotdb-exporter

docker run -d -p "2000:8092" --name iotdb-exporter fagner/prometheus-iotdb-exporter

Or clone the repo and run the following commands.

docker build -t iotdb-exporter .
docker run -d -p "2000:8092" --name iotdb-exporter iotdb-exporter