WATCHLIGHT

Backend Observability Platform - Real-time Monitoring & AI-Powered Analysis

Total Logs

-
Errors: -

Metrics

-
Services: -

Traces

-
Services: -

Error Rate

-
Last Hour

Scenario Testing

Test different scenarios to see how the system handles various conditions. Click a scenario to send test data to the observability platform.

Sending Test Data to Observability Platform
Total Logs
0
Errors
0
Warnings
0
Info Logs
0
Debug Logs
0
Metrics
0
Traces
0
Log Level Breakdown
Error 0
Warn 0
Info 0
Debug 0
Initializing...
Loading logs
Loading metrics
Loading traces
Loading AI analysis
Loading anomaly timeline
Loading CloudWatch logs

API Endpoints

GET /api/dashboard/stats

Get dashboard statistics including total logs, metrics, traces, and error rates.

curl -X GET http://localhost:3000/api/dashboard/stats
GET /api/logs

Get logs with optional filtering. Query params: limit, level, service, startTime, endTime

curl -X GET "http://localhost:3000/api/logs?limit=50&level=error"
POST /api/logs

Send log data to the observability platform.

curl -X POST http://localhost:3000/api/logs \
-H "Content-Type: application/json" \
-d '{"level":"error","message":"Database connection failed","service":"api-service"}'
GET /api/metrics

Get metrics with optional filtering. Query params: limit, service, startTime, endTime

curl -X GET "http://localhost:3000/api/metrics?limit=20&service=api-service"
POST /api/metrics

Send metrics data to the observability platform.

curl -X POST http://localhost:3000/api/metrics \
-H "Content-Type: application/json" \
-d '{"service":"api-service","metrics":{"requestCount":100,"errorCount":5,"avgResponseTime":150}}'
GET /api/traces

Get traces with optional filtering. Query params: limit, traceId, service, startTime, endTime

curl -X GET "http://localhost:3000/api/traces?limit=20"
GET /api/ai-analysis

Get AI analysis results. Query params: limit, startTime, endTime

curl -X GET "http://localhost:3000/api/ai-analysis?limit=10"