Skip to content

Getting Started

trinops requires Python 3.10+. Choose your preferred installer:

Terminal window
uvx trinops top

trinops needs to know where your Trino coordinator lives. The fastest way to set that up is config init.

Terminal window
trinops config init

You will be prompted for:

PromptDefaultDescription
Trino server(required)Hostname or host:port
Schemehttpshttp or https
User(required)Trino user name
Auth methodnonenone, basic, jwt, oauth2, or kerberos

The config file is written to ~/.config/trinops/config.toml.

Pass every required value as a flag and trinops skips the prompts:

Terminal window
trinops config init \
--server trino.example.com \
--scheme https \
--user alice \
--auth none \
--yes

The --yes flag overwrites an existing config file without asking.

When the server value does not include an explicit port, trinops infers one from the scheme:

  • https defaults to port 443
  • http defaults to port 8080

So --server trino.example.com --scheme https connects to trino.example.com:443.

If you prefer not to use a config file, set environment variables instead. trinops checks these before falling back to the config file:

Terminal window
export TRINOPS_SERVER=trino.example.com:443
export TRINOPS_SCHEME=https
export TRINOPS_USER=alice
export TRINOPS_AUTH=none

See Configuration for the full list of environment variables and config fields.

Launch the TUI dashboard:

Terminal window
trinops top

trinops query list

The dashboard refreshes every 30 seconds by default. Press r to refresh immediately, q to quit.

If you see “No queries,” your Trino cluster may not have any active queries at the moment. Press a to switch to “all users” mode and pick up queries submitted by anyone.