Skip to content

Operations

dev1lsconf edited this page Nov 28, 2026 · 1 revision

Operación y Troubleshooting

Ejecución

tinytop --config /ruta/config.toml
tinytop --check-config --deep --config /ruta/config.toml
tinytop --tui --config /ruta/config.toml

Dashboard: http://<bind>:<port> (default http://localhost:9090).

Servicios

systemd

Plantilla: packaging/systemd/tinytop.service.

sudo systemctl daemon-reload
sudo systemctl enable --now tinytop
sudo systemctl status tinytop
sudo systemctl reload tinytop   # SIGHUP

*BSD rc.d

Plantillas en packaging/bsd/:

  • FreeBSD: tinytop.rc.freebsd
  • OpenBSD: tinytop.rc.openbsd
  • NetBSD: tinytop.rc.netbsd

Persistencia

  • SQLite en WAL; crea .db, .db-wal, .db-shm.
  • El usuario del proceso debe poder escribir en el directorio de db_path.
  • Usa db_path absoluto en servicios.
  • Retención/pruning por retention_hours.
  • Rollups/downsampling para rangos largos.

Recarga

  • Unix: SIGHUP recarga configuración (campos soportados).
  • Otros entornos: reiniciar el proceso.

Seguridad

  • Auth opcional por token Bearer/X-API-Key o Basic.
  • allow_query_token=false por defecto (recomendado).
  • Sin auth, exponer solo en red confiable o detrás de reverse proxy con TLS.
  • /api/config redacta secretos.
  • Dashboard con CSP endurecida y assets propios.

Troubleshooting

Síntoma Acción
Config inválida tinytop --check-config [--deep] --config ...
Sin datos / starting Esperar interval_seconds, revisar /api/health y logs, verificar db_path escribible
DB no se crea / readonly Permisos de directorio, ruta absoluta, usuario del servicio
401/403 Verificar auth/token/cabeceras; no usar ?token= salvo legacy explícito
ping/cert TLS sin datos Instalar ping/openssl (best-effort)
Cambios config no aplican SIGHUP en Unix o reiniciar
Notificaciones no llegan Validar credenciales/url/topic, conectividad, cooldown y transiciones
TUI no inicia Requiere TTY interactiva
Binario *BSD no corre ldd ./tinytop; instalar SQLite/CA; compilar nativamente si hay mismatch ABI/soname

Logs

TinyTop usa tracing. Controla verbosidad con RUST_LOG, por ejemplo:

RUST_LOG=info,tinytop=debug tinytop --config /ruta/config.toml

Clone this wiki locally