Skip to content

RethinkDB

Exporter Metrics

RethinkDB is an open-source distributed document database designed for real-time applications with built-in change feeds.

Detailed RethinkDB metrics are available through the third-party oliver006/rethinkdb_exporter.

  • RethinkDB installed and running
  • Glouton agent installed on the same host
  • Access to the RethinkDB admin port (default 28015)

No special configuration is required on the RethinkDB side. The exporter connects directly to the RethinkDB admin port.

Download the latest release from the rethinkdb_exporter releases page, or install with Go:

Terminal window
go install github.com/oliver006/rethinkdb_exporter@latest

Start the exporter:

Terminal window
rethinkdb_exporter --rethinkdb.addr=localhost:28015

The exporter listens on port 9123 by default. Verify it is working:

Terminal window
curl http://localhost:9123/metrics

For production use, create a systemd service unit to manage the exporter process.

Terminal window
sudo tee /etc/glouton/conf.d/99-rethinkdb.conf > /dev/null << 'EOF'
metric:
prometheus:
targets:
- url: "http://localhost:9123/metrics"
name: "rethinkdb"
allow_metrics:
- "rethinkdb_cluster_servers_total"
- "rethinkdb_cluster_client_connections"
- "rethinkdb_table_docs_per_second_read"
- "rethinkdb_table_docs_per_second_written"
- "rethinkdb_server_query_engine_queries_per_sec"
EOF

Glouton automatically detects configuration changes.

Metric Description
rethinkdb_cluster_servers_total Total number of servers in the RethinkDB cluster
rethinkdb_cluster_client_connections Number of active client connections across the cluster
rethinkdb_table_docs_per_second_read Number of document reads per second per table
rethinkdb_table_docs_per_second_written Number of document writes per second per table
rethinkdb_server_query_engine_queries_per_sec Number of queries executed per second on the server