PromptHub
Back to Blog
Developer Tools Infrastructure Monitoring

syofyanzuhad/uptime-kita: Open-Source Uptime Monitoring with Laravel

B

Bright Coding

Author

9 min read 41 views
syofyanzuhad/uptime-kita: Open-Source Uptime Monitoring with Laravel

syofyanzuhad/uptime-kita: Open-Source Uptime Monitoring with Laravel↗ Bright Coding Blog

Developers running production services need reliable uptime monitoring without the cost or complexity of enterprise SaaS platforms. Whether you're maintaining personal projects, client sites, or internal infrastructure, knowing when a service goes down—and getting notified fast—can mean the difference between a quick fix and hours of downtime.

syofyanzuhad/uptime-kita addresses this need directly. Built on Laravel 12.x with a Vue.js↗ Bright Coding Blog frontend, this open-source uptime monitoring tool provides HTTP/HTTPS monitoring, SSL certificate tracking, real-time status notifications, and embeddable uptime badges. The name "Kita" comes from Indonesian, meaning "Us"—reflecting the project's community-oriented purpose. With 175 GitHub stars, Apache 2.0 licensing, and active development through mid-2026, it represents a pragmatic self-hosted alternative to commercial monitoring services.

What is syofyanzuhad/uptime-kita?

syofyanzuhad/uptime-kita is a self-hosted uptime monitoring application created by Syofyan Zuhad. It falls into the infrastructure monitoring category, specifically synthetic monitoring—proactively checking service availability rather than relying on passive metrics.

The project is built on a modern PHP stack: Laravel 12.x backend, Vue.js reactive frontend, SQLite for data storage, and Redis for caching and queue management. This architecture choice matters for deployment flexibility. Laravel's scheduler and queue worker patterns, combined with Supervisor process management, make it suitable for both small VPS deployments and containerized environments.

With 175 stars and 12 forks as of the last commit in July 2026, the project sits in the emerging phase of open-source adoption—not yet mainstream, but with enough traction to suggest sustained maintenance. The Apache 2.0 license removes commercial usage concerns, a deliberate choice over more restrictive licenses that often hinder infrastructure tool adoption.

The project includes CI/CD pipelines (tests and PR checks), Codecov integration, and a live demo instance hosted in Germany. These signals indicate maintainer commitment to code quality and operational transparency.

Key Features

HTTP/HTTPS Monitoring — The core functionality checks service availability at configurable intervals, with status history tracking for trend analysis.

SSL Certificate Validation — Monitors certificate expiry dates, preventing the common operational failure of expired certificates breaking services.

Real-Time Notifications via SSE — Server-Sent Events power instant toast notifications on public status pages when monitors change state. This avoids the complexity of WebSocket infrastructure while providing sub-second updates to connected clients.

Multi-Channel Alerts — Currently supports Email (via SMTP/Resend), Telegram bot notifications, with Slack and Discord integrations marked as in-progress on the roadmap.

Multiple Status Pages — Create isolated public status pages for different services or clients, each with independent monitor collections.

Embeddable Uptime Badges — Generate SVG badges for README files or external sites, with configurable time periods (1h, 24h, 7d, 30d, 90d) and color-coded availability percentages.

Server Resource Monitoring — Built-in dashboard tracking CPU, memory, disk usage, load averages, PHP environment details, and queue health—accessible from Settings > Server Resources with 5-second auto-refresh.

Docker & Cronless Deployment — Full containerization with docker-compose profiles for production and development, plus a cronless scheduler for environments without cron access.

Google OAuth Authentication — Secure admin access without password management overhead.

Use Cases

Freelance Developer Client Monitoring — A developer managing 15-20 client websites can deploy Uptime Kita on a single $5-10 VPS, create per-client status pages, and embed uptime badges in maintenance reports. The multi-status-page feature keeps client data isolated without running separate instances.

Internal DevOps↗ Bright Coding Blog Dashboard — Small engineering teams can monitor microservice health alongside infrastructure metrics. The server resource monitoring provides quick visibility into host health without deploying a separate node exporter and Prometheus stack.

Open Source Project Infrastructure — Project maintainers can demonstrate reliability to users and contributors through public status pages and README badges. The SSE-powered real-time updates on status pages create transparency during incidents.

Homelab & Personal Infrastructure — Self-hosters running Plex, Nextcloud, or personal APIs gain monitoring with lower resource overhead than Nagios or Zabbix. The SQLite default avoids database server complexity for single-node deployments.

Pre-Production Validation — Teams can run Uptime Kita in staging environments to validate monitoring configurations before production deployment, testing notification channels and status page layouts.

Installation & Setup

The project requires PHP 8.2+, Node.js 22, Redis, SQLite, and either crontab or Supervisor for background processes.

Clone and install dependencies:

# Clone repository
git clone https://github.com/syofyanzuhad/uptime-kita

# Install PHP dependencies
composer install

# Install JavaScript↗ Bright Coding Blog dependencies and build assets
npm install
npm run build

Configure environment:

cd uptime-kita
cp .env.example .env
php artisan key:generate

Edit .env with required credentials:

# Admin credentials
ADMIN_EMAIL=admin@syofyanzuhad.dev
ADMIN_PASSWORD=password123

# Google OAuth (optional)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

# Telegram notifications (optional)
TELEGRAM_BOT_TOKEN=

# Email via Resend (optional)
RESEND_API_KEY=

Create SQLite databases and seed:

touch database/database.sqlite
touch database/queue.sqlite
touch database/telescope.sqlite

php artisan migrate --seed --force

Configure the scheduler. For systems with cron access:

crontab -e
# Add: * * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

For containerized or restricted environments, use the cronless scheduler:

php artisan schedule:run-cronless-safe --frequency=60 --max-memory=256 --max-runtime=86400

Configure queue workers via Supervisor. For Laravel Queue:

# /etc/supervisor/conf.d/laravel-worker.conf
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /home/path-to-project/artisan queue:work sqs --sleep=3 --tries=3 --max-time=3600
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=forge
numprocs=8
redirect_stderr=true
stdout_logfile=/home/forge/app.com/worker.log
stopwaitsecs=3600

For Laravel Horizon (preferred for production):

# /etc/supervisor/conf.d/horizon.conf
[program:horizon]
process_name=%(program_name)s
command=php /home/path-to-project/artisan horizon
autostart=true
autorestart=true
user=forge
redirect_stderr=true
stdout_logfile=/home/path-to-project/horizon.log
stopwaitsecs=3600

Apply Supervisor changes:

sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start horizon

Docker deployment simplifies this further:

docker build -t uptime-kita .
docker compose up -d           # Production
docker compose --profile dev up -d  # Development with hot reload

Real Code Examples

Custom Monitor Seeding

The project uses PHP configuration files for defining default monitors, editable before initial deployment:

// database/seeders/MonitorSeeder.php

public function run(): void
{
    $monitors = require database_path('seeders/monitors/monitors.php');
    $collages = require database_path('seeders/monitors/collage.php');

    // Additional seeding logic follows
}

This pattern separates monitor definitions from seeding logic, making it straightforward to version-control expected infrastructure targets alongside application code.

Embeddable Uptime Badge

Generate status badges for external use with period parameterization:

<!-- Default 24-hour uptime -->
![Uptime](https://uptime.syofyanzuhad.dev/badge/syofyanzuhad.dev)

<!-- 7-day aggregation -->
![Uptime](https://uptime.syofyanzuhad.dev/badge/syofyanzuhad.dev?period=7d)

<!-- 30-day SLA reporting -->
![Uptime](https://uptime.syofyanzuhad.dev/badge/syofyanzuhad.dev?period=30d)

Badge color coding: green for ≥99% uptime, yellow for ≥95%, red below 95%. This provides immediate visual status communication without requiring visitors to access the full dashboard.

SSE Endpoint for Real-Time Updates

Public pages subscribe to /api/monitor-status-stream with automatic reconnection:

// Conceptual client-side implementation (inferred from README documentation)
// Actual Vue.js implementation handles connection lifecycle internally

const eventSource = new EventSource('/api/monitor-status-stream');

eventSource.addEventListener('monitor-status-changed', (event) => {
    const data = JSON.parse(event.data);
    // Toast notification rendered with status change details
    showToast(data.monitor, data.previous_status, data.current_status);
});

// Auto-reconnect with exponential backoff handled by browser EventSource API
// Max connection duration: 5 minutes, heartbeat every 30 seconds

The SSE approach avoids WebSocket infrastructure while providing real-time capabilities suitable for status page use cases where updates are event-driven rather than continuous streaming.

Advanced Usage & Best Practices

Queue Backend Selection — The README shows queue:work sqs in examples, but Laravel supports multiple drivers. For self-hosted deployments, Redis (configured via QUEUE_CONNECTION=redis) provides better consistency with the existing Redis cache requirement and enables Horizon's monitoring dashboard.

Database Separation — The three SQLite files (database.sqlite, queue.sqlite, telescope.sqlite) separate application data, queue jobs, and debug telemetry. For production workloads exceeding SQLite's concurrency limits, migrating to PostgreSQL↗ Bright Coding Blog or MySQL requires updating the DB_CONNECTION environment variable and running migrations—no application code changes needed due to Laravel's database abstraction.

Notification Channel Fallbacks — Configure multiple notification channels for critical monitors. The current implementation supports email and Telegram; if both are configured, failures in one channel don't block the other.

Resource Monitoring Thresholds — The server resources page uses 70% and 90% thresholds for color-coding. These defaults suit general-purpose servers; consider lower thresholds for memory-constrained VPS deployments where swap thrashing causes nonlinear performance degradation.

Badge Caching Implications — Uptime badges are served dynamically. High-traffic README files may generate substantial request volume—consider implementing CDN caching or adjusting badge refresh intervals if hosting costs become significant.

Comparison with Alternatives

Feature Uptime Kita Uptime Kuma Statping
License Apache 2.0 MIT GPL-3.0
Primary Language PHP/Laravel Node.js/Vue Go/Vue
Database SQLite (default), others via Laravel SQLite, MariaDB, MySQL, Postgres SQLite, Postgres, MySQL
Real-Time Updates SSE WebSocket WebSocket
Notification Channels Email, Telegram (Slack/Discord planned) 90+ integrations Email, Slack, Discord, Telegram
Resource Monitoring Built-in CPU/Memory/Disk No No
Embeddable Badges Yes, with period selection Yes Yes
Docker Deployment Full compose with dev profile Yes Yes
Maturity Emerging (175 stars) Established (60k+ stars) Mature but maintenance-challenged

Trade-off analysis: Uptime Kuma offers broader notification ecosystem integration and larger community. Statping provides similar Go-based efficiency but has faced maintenance uncertainty. Uptime Kita's value lies in Laravel ecosystem integration for teams already operating PHP infrastructure, built-in server resource monitoring reducing tool sprawl, and the cronless scheduler for restricted deployment environments. The SSE implementation versus WebSocket reduces infrastructure complexity at the cost of unidirectional communication.

FAQ

What PHP version is required? PHP 8.2 or higher, matching Laravel 12.x requirements.

Can I use MySQL or PostgreSQL instead of SQLite? Yes—Laravel's database abstraction supports multiple backends via environment configuration.

Is there a hosted version available? The maintainer operates a demo instance at uptime.syofyanzuhad.dev; no paid hosting service is documented.

How do notification rate limits work? The SSE endpoint is rate-limited to 10 requests per minute; notification channel limits depend on provider APIs.

Can I monitor private/internal endpoints? Yes—monitors are configured independently of status page visibility; private monitors don't appear on public pages.

What's the monitoring check frequency? Configurable via Laravel scheduler; the cronless scheduler defaults to 60-second intervals.

Is commercial use permitted under Apache 2.0? Yes—Apache 2.0 explicitly permits commercial use with attribution requirements.

Conclusion

syofyanzuhad/uptime-kita serves a specific niche: teams and individuals seeking self-hosted uptime monitoring without leaving the PHP/Laravel ecosystem or deploying heavy observability stacks. The 175-star project won't replace Datadog or PagerDuty for enterprise needs, but it credibly addresses the gap between "nothing" and "overkill" for small-to-medium infrastructure.

The built-in server resource monitoring, embeddable badges, and SSE-powered status pages demonstrate thoughtful feature selection aligned with actual operator workflows rather than spec-sheet padding. Docker support and the cronless scheduler acknowledge real deployment constraints.

Best suited for: Laravel-focused developers, freelance operators managing multiple client sites, homelab enthusiasts, and teams validating monitoring approaches before larger investments.

Explore the project, review the live demo, and evaluate whether it fits your infrastructure needs at https://github.com/syofyanzuhad/uptime-kita.

Comments (0)

Comments are moderated before appearing.

No comments yet. Be the first to share your thoughts!

All tools