Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/monitoring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Push Notifications Monitoring Dashboard

## Quick Start

1. Run `npm install` then `npm run dev`
2. Open `http://localhost:3000/system-health`
3. Click "Enable Notifications" and allow permission
4. Send a test message

## Features

- **System Health**: Real memory, CPU, uptime from Node.js
- **Notification Metrics**: Sent, Delivered, Clicked, Failed counts
- **Delivery Success Rate**: Visual progress bar
- **Event Logs**: Complete history with filters and export
- **Dark Mode**: Toggle light/dark themes
- **Auto-Refresh**: Updates every 5 seconds

## API Endpoints

- `GET /api/notifications/metrics` - System metrics
- `GET/POST/DELETE /api/notifications/track` - Event tracking
- `POST /api/notifications/send-notification` - Send test notifications
4 changes: 4 additions & 0 deletions lib/subscriptions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Shared subscriptions storage for all API routes
const subscriptions = new Map();

export { subscriptions };
Loading
Loading