How londheshubham153/pulsecheck works
PulseCheck is a FastAPI uptime monitor with a browser dashboard and an optional Kubernetes operations view. Users browse and periodically refresh service checks, or submit a URL for a one-off check; they can inspect latency, TLS and official status details. In Kubernetes, the dashboard shows pods and events and can request pod deletion or a crash. The graph preserves documented health and Prometheus capabilities. Several backend routes and frontend modules are unsampled, so their internal call links are omitted or marked unverified.
Main entry points: app.js Dashboard app · api.py API routes · probe.py URL probe · pods.py Pods API
Components 25
Dashboard
- Dashboard app
app/static/js/app.js - Service details
app/static/js/drawer.js - Pods and events panel
app/static/js/pods/panel.js - Serving pod status
app/static/js/pods/serving.js
Service API
- API routes
app/routes/api.py - Service catalog
app/services/catalog.py - Check cache
app/services/cache.py
Uptime checks
- URL probe
app/services/checks/probe.py - SSRF guard
app/services/checks/guard.py - HTTP client
app/services/checks/client.py - Check state
app/services/checks/state.py - Official status feeds
app/services/checks/statuspage.py
Kubernetes view
- Pods API
app/routes/pods.py - Pod snapshot and deletion
app/services/cluster/pods.py - Kubernetes client
app/services/cluster/kube.py
Operations
- Chaos endpoint
app/routes/chaos.py - Pod identity
app/services/identity.py - Deletion rate limit
app/services/ratelimit.py - Health endpoint
app/routes/health.py - Metrics endpoint
app/routes/metrics.py - Prometheus telemetry
app/services/telemetry.py
Other components
- Browser user
- Kubernetes API
- Kubernetes Deployment
- Checked websites
Connections 24
- Browser user → Dashboard app: uses
README.md - Dashboard app → Service details: opens details
app/static/js/app.js - Dashboard app → API routes: requests checks
app/static/js/app.js - Dashboard app → Pods and events panel: opens and polls
app/static/js/app.js - Dashboard app → Serving pod status: polls status
app/static/js/app.js - API routes → Service catalog: lists services
- API routes → URL probe: requests probes
- URL probe → SSRF guard: validates URLs
app/services/checks/probe.py - URL probe → HTTP client: sends requests
app/services/checks/probe.py - API routes → Check cache: uses cache
- API routes → Official status feeds: returns official status
- URL probe → Checked websites: checks availability
README.md - Pods and events panel → Pods API: polls and deletes
app/static/js/pods/panel.js - Serving pod status → Pods API: requests pod status
app/static/js/pods/serving.js - Pods API → Pod snapshot and deletion: lists or deletes
app/routes/pods.py - Pods API → Deletion rate limit: limits deletions
app/routes/pods.py - Pod snapshot and deletion → Kubernetes client: calls Kubernetes
app/services/cluster/pods.py - Kubernetes client → Kubernetes API: sends API requests
README.md - Kubernetes Deployment → Kubernetes API: maintains pods
README.md - Browser user → Chaos endpoint: requests crash
README.md - Chaos endpoint → Pod identity: identifies pod
app/routes/chaos.py - Browser user → Health endpoint: checks health
- Browser user → Metrics endpoint: scrapes metrics
- Metrics endpoint → Prometheus telemetry: reads metrics
app/routes/metrics.py