Skip to content
On this page

How to use tokio-console in GreptimeDB

This document introduces how to use the tokio-console in GreptimeDB.

First, build GreptimeDB with feature cmd/tokio-console. Also the tokio_unstable cfg must be enabled:

RUSTFLAGS="--cfg tokio_unstable" cargo build -F cmd/tokio-console

Then start GreptimeDB with tokio console binding address config: --tokio-console-addr. Remember to run with the tokio_unstable cfg. For example:

RUSTFLAGS="--cfg tokio_unstable" greptime --tokio-console-addr="" standalone start

Now you can use tokio-console to connect to GreptimeDB's tokio console subscriber:

tokio-console [TARGET_ADDR]

"TARGET_ADDR" defaults to "".