Official Docker installation for the CheckLogs monitoring agent.
- Docker Engine 20.10+
- Docker Compose 2.0+
- A CheckLogs account (free at panel.checklogs.dev)
- Go to panel.checklogs.dev
- Login or create an account
- Click "Add Server"
- Copy your API_KEY and UDP_PORT
# Create installation directory
mkdir -p /opt/checklogs && cd /opt/checklogs
# Download docker-compose.yml
curl -o docker-compose.yml https://raw.githubusercontent.com/checklogsdev/Docker/main/docker-compose.yml
# Download .env.example
curl -o .env.example https://raw.githubusercontent.com/checklogsdev/Docker/main/.env.example
# Copy and configure
cp .env.example .env
nano .env # Add your CHECKLOGS_API_KEY and CHECKLOGS_API_PORTdocker-compose up -d# Check if container is running
docker-compose ps
# View logs
docker-compose logs -f
# You should see:
# β Configuration valid
# β Agent started successfully
# π¦ Sent metrics to api.checklogs.devGo to panel.checklogs.dev and verify your server appears with live metrics.
Edit your .env file with values from the dashboard:
CHECKLOGS_API_KEY=your_api_key_from_dashboard
CHECKLOGS_API_PORT=your_udp_port_from_dashboard# Server name (shown in dashboard)
SERVER_NAME=My Production Server
# Collection interval in seconds (default: 10)
COLLECT_INTERVAL=10
# Enable/disable specific metrics
COLLECT_CPU=true
COLLECT_RAM=true
COLLECT_DISK=true
COLLECT_LOAD=true
COLLECT_PROCESSES=true
# Number of top processes to monitor (default: 10)
TOP_PROCESSES_COUNT=10
# Logging level: DEBUG, INFO, WARNING, ERROR (default: INFO)
LOG_LEVEL=INFOdocker-compose up -ddocker-compose downdocker-compose restart# Follow logs in real-time
docker-compose logs -f
# View last 100 lines
docker-compose logs --tail=100
# View logs with timestamps
docker-compose logs -f -tdocker-compose pull
docker-compose up -ddocker-compose psdocker stats checklogs_agent-
Check API credentials:
docker-compose exec agent printenv | grep CHECKLOGS
-
Check logs for errors:
docker-compose logs -f | grep ERROR -
Verify network connectivity:
docker-compose exec agent ping -c 3 api.checklogs.dev
# Check exit code and reason
docker-compose ps
# View full logs
docker-compose logs --tail=50
# Common issues:
# - Missing API_KEY or API_PORT in .env
# - Invalid credentials
# - Network connectivity issuesThe agent is configured with resource limits:
- CPU: 0.25 cores max
- Memory: 256MB max
Adjust in docker-compose.yml if needed:
deploy:
resources:
limits:
cpus: '0.50'
memory: 512M- The agent runs with minimal privileges
- Host filesystems mounted read-only
- Resource limits prevent system impact
- No sensitive data stored in logs
- API key transmitted securely via UDP
- β CPU: Usage, user/system time, I/O wait
- β RAM: Used, free, available, cached, swap
- β Disk: Usage per partition, inodes
- β Load: 1min, 5min, 15min averages
- β Processes: Top 10 by CPU/RAM usage
- β Uptime: System uptime and boot time
The agent needs outbound UDP access to:
- Host:
api.checklogs.dev - Port: Your assigned UDP port (from dashboard)
No inbound ports needed!
- π§ Email: [email protected]
- π Documentation: docs.checklogs.dev
- π Issues: GitHub Issues
- π¬ Discord: discord.gg/checklogs
MIT License - See LICENSE file for details.
We welcome contributions! See our Agent Repository for the source code.
Made with β€οΈ by CheckLogs Team