Skip to main content
Version: 1.2

Standalone

Subcommand options

Print the options supported by the current binary:

greptime standalone start --help
OptionDescription
-c/--config-file <CONFIG_FILE>The configuration file for the standalone instance
--data-home <DATA_HOME>Working directory of the standalone instance
--env-prefix <ENV_PREFIX>The prefix of environment variables, default is GREPTIMEDB_STANDALONE
--http-addr <HTTP_ADDR>HTTP server address
-i/--influxdb-enableWhether to enable InfluxDB protocol in HTTP API
--log-dir <LOG_DIR>Log directory
--log-level <LOG_LEVEL>Log level
--mysql-addr <MYSQL_ADDR>MySQL server address
--postgres-addr <POSTGRES_ADDR>Postgres server address
--grpc-bind-addr <GRPC_BIND_ADDR>The address to bind the gRPC server
--tls-mode <TLS_MODE>TLS mode
--tls-cert-path <TLS_CERT_PATH>TLS certificate file
--tls-key-path <TLS_KEY_PATH>TLS private key file
--tls-watchWatch TLS certificate files and reload them when they change
--user-provider <USER_PROVIDER>Authentication provider configuration. See Authentication

Examples

Start standalone with configurations

Start GreptimeDB in standalone mode from a configuration file:

greptime --log-dir=greptimedb_data/logs --log-level=info standalone start -c config/standalone.example.toml

The standalone.example.toml file is in the GreptimeDB repository. The -c option selects the configuration file; see Configuration.