Navigation Menu

Skip to content


Folders and files

Last commit message
Last commit date

Latest commit


Repository files navigation

Build GitHub release (with filter) AUR version Github All Releases


System monitoring tool with historical data service, triggers and top-like TUI


  • Saving historical snapshots via systemd.timer or crontab

    • It is the main diff from htop, top, btop and etc
  • Scroll via historical data

  • External triggers (for notifications or other needs)

  • Ascii graph of historical stats (via

    • by default you see full day on the chart, see the moment of the spike and move into it for a detailed analysis
  • TUI with critical values highlights

  • Group by program

  • Search filters: @u - user u, #d - docker d

  • Temperature via sysfs

  • User-space only, doesn't require root permissions

  • Docker-related info

  • Threads tree

  • Static build



yay -S ttop             # enables systemd.timers automatically

Static binary

curl -LO \
&& chmod +x ttop
mv ttop ~/.local/bin/   # add into PATH if necessary
ttop --on               # Optional: enable data collector in user's systemd.timers or crontab


ttop --off
rm ~/.local/bin/ttop

Build from source

curl -sSf | sh    # Nim setup from

git clone
cd ttop
nimble -d:release build

Triggers / Notifications

  • stmp support was removed in prev version by the reason that static binary with ssl is more that 3Mb

From v0.8.1 you can trigger external tool, for example curl, to send notifications


Config example

~/.config/ttop/ttop.toml or /etc/ttop.toml

My own server's config

cmd = "$HOME/.local/bin/"

Config with all parameters described

  • if you need it
# light = false            # set true for light term (default = false)

# docker = "/var/run/docker.sock"   # docker's socket path

# [data]
# path = "/var/log/ttop" # custom storage path (default = if exists /var/log/ttop, else ~/.cache/ttop )

# Trigger is any external script or command which receives text from ttop into stdin + some envs
[[trigger]]              # telegram example
on_alert = true          # execute trigger on alert (true if no other on_* provided)
on_info = true           # execute trigger without alert (default = false)
debug = false            # output stdout/err from cmd (default = false)
cmd = '''
read -d '' TEXT
curl -X POST \
  -H 'Content-Type: application/json' \
  -d "{\"chat_id\": $CHAT_ID, \"text\": \"$TEXT\", \"disable_notification\": $TTOP_INFO}" \$TELEGRAM_BOT_TOKEN/sendMessage

# cmd receives text from stdin. The following env vars are set:
#   TTOP_ALERT (true|false) - if alert
#   TTOP_INFO  (true|false) - opposite to alert
#   TTOP_TYPE  (alert|info) - trigger type
#   TTOP_HOST               - host name
# you can find your CHAT_ID by send smth to your bot and run:
#    curl$TELEGRAM_BOT_TOKEN/getUpdates

[[trigger]]               # smtp example
cmd = '''
read -d '' TEXT
TEXT="Subject: ttop $TTOP_TYPE from $TTOP_HOST

echo "$TEXT" | curl --ssl-reqd \
  --url 'smtps://' \
  --user 'login:password' \
  --mail-from '' \
  --mail-rcpt '' \
  --upload-file -