Documentation structure: - docs/README.md - Documentation index - docs/getting-started.md - Installation and first run - docs/usage.md - Dashboard features and usage - docs/configuration.md - Full configuration reference - docs/multi-device.md - Agent setup and PKI management - docs/security.md - Authentication, RBAC, mTLS - docs/api.md - Complete REST API reference - docs/deployment.md - Production deployment guide - docs/troubleshooting.md - Common issues and solutions - docs/development.md - Contributing and building Total: ~80KB of documentation covering all features 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
190 lines
3.5 KiB
Markdown
190 lines
3.5 KiB
Markdown
# Getting Started
|
|
|
|
This guide will help you get Tyto running in minutes.
|
|
|
|
## Prerequisites
|
|
|
|
- **Docker** and **Docker Compose** (v2.0+)
|
|
- Linux host (for monitoring)
|
|
- Modern web browser
|
|
|
|
## Installation Methods
|
|
|
|
### Method 1: Docker Compose (Recommended)
|
|
|
|
The quickest way to get started:
|
|
|
|
```bash
|
|
# Clone the repository
|
|
git clone https://somegit.dev/vikingowl/tyto.git
|
|
cd tyto
|
|
|
|
# Start the containers
|
|
docker compose up -d
|
|
```
|
|
|
|
Access the dashboard at **http://localhost:3000**
|
|
|
|
### Method 2: One-Line Install
|
|
|
|
For a native installation on Linux:
|
|
|
|
```bash
|
|
curl -fsSL https://somegit.dev/vikingowl/tyto/raw/branch/main/scripts/install.sh | sudo bash
|
|
```
|
|
|
|
This will:
|
|
- Download the Tyto binary
|
|
- Create a system user (`tyto`)
|
|
- Set up configuration in `/etc/tyto/`
|
|
- Install and start a systemd service
|
|
|
|
### Method 3: Manual Binary
|
|
|
|
Download the binary for your platform:
|
|
|
|
```bash
|
|
# Download latest release
|
|
curl -LO https://somegit.dev/vikingowl/tyto/releases/latest/download/tyto-linux-amd64.tar.gz
|
|
|
|
# Extract
|
|
tar -xzf tyto-linux-amd64.tar.gz
|
|
|
|
# Run
|
|
./tyto
|
|
```
|
|
|
|
## First Run
|
|
|
|
### 1. Access the Dashboard
|
|
|
|
Open your browser to:
|
|
- **Docker**: http://localhost:3000
|
|
- **Native**: http://localhost:8080
|
|
|
|
### 2. Explore the Interface
|
|
|
|
The dashboard shows real-time metrics:
|
|
|
|
| Card | Information |
|
|
|------|-------------|
|
|
| **System** | Hostname, kernel, uptime |
|
|
| **CPU** | Per-core usage, load averages |
|
|
| **Memory** | RAM, swap, buffers |
|
|
| **Disk** | Mount points, I/O rates |
|
|
| **Network** | Interfaces, bandwidth |
|
|
| **Processes** | Top consumers, process control |
|
|
|
|
### 3. Configure Alerts
|
|
|
|
1. Click the **Alerts** card
|
|
2. Click **Configure Thresholds**
|
|
3. Set warning (e.g., 80%) and critical (e.g., 95%) levels
|
|
4. Enable **Desktop Notifications** for browser alerts
|
|
|
|
### 4. Adjust Refresh Rate
|
|
|
|
Use the **R** key or the dropdown in the header to change how often metrics update:
|
|
- 1 second (high detail)
|
|
- 5 seconds (default)
|
|
- 10 seconds (low bandwidth)
|
|
- 30 seconds (minimal)
|
|
|
|
## Choosing Your Mode
|
|
|
|
Tyto supports three operational modes:
|
|
|
|
### Standalone Mode (Default)
|
|
|
|
Single-host monitoring. No database required.
|
|
|
|
```bash
|
|
docker compose up -d
|
|
# or
|
|
TYTO_MODE=standalone tyto
|
|
```
|
|
|
|
**Best for**: Personal servers, development machines, single hosts.
|
|
|
|
### Server Mode
|
|
|
|
Central server for multi-device monitoring. Requires database.
|
|
|
|
```bash
|
|
TYTO_MODE=server docker compose up -d
|
|
```
|
|
|
|
**Best for**: Multiple servers, teams, enterprise monitoring.
|
|
|
|
See [Multi-Device Setup](multi-device.md) for details.
|
|
|
|
### Agent Mode
|
|
|
|
Lightweight agent that reports to a central server.
|
|
|
|
```bash
|
|
TYTO_MODE=agent tyto
|
|
```
|
|
|
|
**Best for**: Monitored hosts in a multi-device setup.
|
|
|
|
## Verifying Installation
|
|
|
|
### Check Services
|
|
|
|
**Docker:**
|
|
```bash
|
|
docker compose ps
|
|
# Should show frontend and backend as "running"
|
|
```
|
|
|
|
**Systemd:**
|
|
```bash
|
|
systemctl status tyto
|
|
# Should show "active (running)"
|
|
```
|
|
|
|
### Check Logs
|
|
|
|
**Docker:**
|
|
```bash
|
|
docker compose logs -f backend
|
|
```
|
|
|
|
**Systemd:**
|
|
```bash
|
|
journalctl -u tyto -f
|
|
```
|
|
|
|
### Test API
|
|
|
|
```bash
|
|
curl http://localhost:8080/health
|
|
# Should return: {"status":"ok"}
|
|
```
|
|
|
|
## Next Steps
|
|
|
|
- [Usage Guide](usage.md) - Learn all dashboard features
|
|
- [Configuration](configuration.md) - Customize your setup
|
|
- [Multi-Device Setup](multi-device.md) - Monitor multiple hosts
|
|
- [Security](security.md) - Set up authentication
|
|
|
|
## Uninstalling
|
|
|
|
### Docker
|
|
|
|
```bash
|
|
docker compose down -v # -v removes volumes
|
|
```
|
|
|
|
### Native Install
|
|
|
|
```bash
|
|
sudo systemctl stop tyto
|
|
sudo systemctl disable tyto
|
|
sudo rm /etc/systemd/system/tyto.service
|
|
sudo rm -rf /opt/tyto /var/lib/tyto /etc/tyto
|
|
sudo userdel tyto
|
|
```
|