Documentation Index
Fetch the complete documentation index at: https://mintlify.com/horlerdipo/watchdog/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Theguard command starts the Watchdog monitoring service. It initializes connections to the database and Redis, then begins monitoring all configured URLs at their specified frequencies.
Usage
Aliases
g
Description
When you run theguard command, Watchdog:
- Loads environment variables from
.env - Connects to PostgreSQL database
- Connects to Redis for caching and job queuing
- Initializes the orchestrator and supervisor
- Sets up monitoring intervals for all frequency tiers
- Starts monitoring all configured URLs
Arguments
This command takes no arguments.Flags
This command has no flags.Monitoring frequencies
The guard command automatically sets up monitoring for the following frequency intervals:- 10 seconds
- 30 seconds
- 1 minute
- 5 minutes
- 30 minutes
- 1 hour
- 12 hours
- 24 hours
Examples
Start the monitoring service
Using the short alias
Prerequisites
Before running the guard command, ensure:-
You have a valid
.envfile with required configuration:DB_USER,DB_PASSWORD,DB_HOST,DB_PORT,DB_DATABASEREDIS_HOST,REDIS_DB- Email configuration for alerts
- PostgreSQL is running and accessible
- Redis is running and accessible
-
You have at least one URL configured (use the
addcommand)
Error handling
Common errors
Database connection failed:.env are correct.
Redis connection failed:
REDIS_HOST in .env is correct.
Technical details
- Connection pool size for Redis: 10
- Minimum idle connections: 5
- Maximum retries: 3
- Read timeout: 30 seconds
- Write timeout: 30 seconds
- Dial timeout: 10 seconds
See also
- add command - Add URLs to monitor
- list command - View all monitored URLs
- analysis command - View monitoring statistics