Monitor
Monitoring
Watch processes, logs, sites and history, and get warned before a disk or boot time gets bad.
Bistro checks the machine every 15 minutes and keeps small history files. It warns you in the Inbox and needs no database.
#Health Score
The Dashboard shows a score from 0 to 100, with the three fixes that raise it most. Bistro keeps one score a day.
bistro health # score and the top fixes
bistro health history 30 # daily scores
bistro forecast # when each disk will be full#Processes
The Processes page lists what runs now and how much it uses. You can stop a process, force it to stop, or run it at low, normal or high priority.
bistro top # busiest by CPU
bistro top --mem -n 20 # busiest by memory
bistro nice 1234 low
bistro kill 1234#Heavy Loads
When the machine struggles, bistro load shows which app takes it. Priority changes take effect at once, with no restart.
bistro load # pressure, busiest apps, priorities
bistro load priority jellyfin low
bistro load auto on # ease the greedy app off while busy
bistro load historyThe Processes page also has a Load Test card. It sends a burst of requests to a site you own.
bistro loadtest run http://localhost:8080 --users 20 --seconds 10A host outside your own network needs --i-own-it.
#Disk IO
Iowatch finds an app that hogs a disk and slows the others. It sets that app's disk weight to low, then releases it when the disk is calm. Without autopilot, it only warns you.
bistro iowatch # busy disks and held-back apps
bistro iowatch off
bistro iowatch history#Logs
The Logs page searches the system journal. Filter by service, level, time and text, or follow live.
bistro logs nginx -n 100
bistro logs --errors --since 1h
bistro logs -f nginx
bistro logs search "timeout" --since 7d --level err
bistro logs search "refused" --app jellyfin
bistro logs retention 30d # keep 30 days, or a size like 500MSearch covers the journal and app log files, newest first, up to 500 results.
#Monitoring Page
Add the sites and addresses to watch. A site counts as down after 2 failed checks in a row. Bistro then sends an urgent alert, and an info alert when it returns. Checks run every 5 minutes.
bistro uptime add blog https://example.com
bistro uptime add api https://example.com/health 200
bistro uptime # up or down, response time, 24 hour and 7 day uptime
bistro uptime check
bistro uptime remove blogThe page also lists HTTPS certificates and failed logins. Bistro warns once per address that fails 20 times or more. fail2ban blocks the address when it is installed.
bistro logins 60 # failed logins in the last 60 minutes#History Page
History draws one chart for each metric: processor, memory, load, disk space, network, graphics card, and memory and processor by app. Bistro takes a sample every minute.
| Range | Resolution |
|---|---|
| Up to 24 hours | One value a minute |
| 7 and 30 days | One value every 5 minutes |
| 365 days | One value an hour |
bistro metrics # metric names
bistro metrics query cpu_percent --since 24h
bistro metrics prom # latest values for Prometheus
bistro metrics export grafana # a Grafana dashboard#Early Warnings
Bistro tells you when boots and updates get slower, and when RAM or CPU will run out.
bistro trend # boot and update times, with a verdict
bistro trend history boot
bistro capacity # RAM, CPU, swap and network forecastA slow boot names the three services that took longest. A capacity suggestion appears when RAM or CPU will hit 90 percent within 30 days.