Schedule icon
Request icon
Log icon
Switch icon
SlackIncomingWebhook icon
OutputValues icon

GlitchTip Error Tracking Platform Health and Ingestion Sentinel

Audit GlitchTip error tracking health, validate worker queues and Sentry API ingestion readiness, and alert Slack on incidents via Kestra.

Categories
DataInfrastructure

How it works

  1. Automated Heartbeat Trigger: Runs on a scheduled cron interval every 15 minutes to perform continuous health surveillance, or executes on-demand via webhook.
  2. Multi-Stage Service Probes:
    • probe_system_health: Queries the native GlitchTip /_health/ endpoint to verify PostgreSQL database connectivity, Redis cache latency, and Celery asynchronous task worker readiness.
    • probe_api_root: Queries the Sentry-compatible /api/0/ endpoint to confirm API gateway responsiveness, HTTP response headers, and version consistency.
    • probe_projects_catalog: Queries /api/0/projects/ to inspect active application projects, ingestion DSN status, and platform accessibility.
  3. Pebble Health Classification: Evaluates HTTP status codes, latency thresholds, and probe responses to classify cluster operational status into OPERATIONAL, DEGRADED, or CRITICAL.
  4. Switch Routing & Incident Alerts:
    • CRITICAL: Logs high-priority error diagnostics and immediately dispatches an urgent incident webhook alert to Slack with execution details.
    • DEGRADED: Logs a warning for elevated probe latencies or sub-service anomalies and sends a Slack notification if warning alerts are enabled.
    • OPERATIONAL: Logs health verification confirmation with project counts and cluster metrics.
  5. Structured Telemetry Output: Emits structured outputs via io.kestra.plugin.core.output.OutputValues for downstream monitoring dashboards, APM systems, or data lake landing.
  6. Error Incident Fallback: A dedicated errors task handles uncaught network timeouts or connection drops, alerting SRE teams instantly.

What you get

  • Continuous validation of your self-hosted GlitchTip error tracking infrastructure and event ingestion pipeline.
  • Proactive detection of Redis queue saturation, Celery worker starvation, or PostgreSQL connection pool exhaustion before applications drop error events.
  • Automated multi-channel Slack incident alerting with formatted block layouts and error status codes.
  • Comprehensive telemetry audit log with timestamped metrics for long-term health tracking.
  • Zero vendor lock-in, fully testable against standard open-source GlitchTip Docker images.

Who it's for

  • DevOps & Platform Engineers: Ensuring continuous availability of developer error tracking and APM telemetry pipelines.
  • Site Reliability Engineers (SREs): Automating proactive drift detection and platform heartbeat monitoring without external SaaS dependencies.
  • Software Engineering Leads: Maintaining reliable exception monitoring and Sentry-compatible SDK ingestion across production services.

Why orchestrate this with Kestra

  • Declarative YAML Workflows: Define your infrastructure monitoring alongside your CI/CD pipelines in version-controlled Git repositories.
  • Built-in Resilience & Retries: Automatically handle transient network jitter with configurable retry policies on individual probe tasks.
  • Stateful Flow Control: Seamlessly branch between operational logs and multi-channel incident dispatches without writing fragile shell scripts.
  • Unified Telemetry & Auditability: Every execution retains full output history, timing metrics, and response payloads for forensic analysis.

Prerequisites

  • An operational GlitchTip instance (accessible via HTTP or HTTPS).
  • Network connectivity from the Kestra worker to the GlitchTip instance.
  • (Optional) An incoming Slack Webhook URL for incident notifications.
  • (Optional) A GlitchTip API auth token for authenticated project endpoints.

Secrets

  • SLACK_WEBHOOK_URL: (Optional) Slack Incoming Webhook URL to dispatch alerts on degraded or critical status.
  • GLITCHTIP_API_TOKEN: (Optional) Personal auth token for authenticated API requests if the GlitchTip instance requires authorization for project endpoints.

Quick start

  1. Start a local GlitchTip container stack for testing:
    docker run -d --name glitchtip -p 8000:8000 glitchtip/glitchtip:latest
    
  2. Add the SLACK_WEBHOOK_URL secret in your Kestra namespace or pass it as an execution input.
  3. Import this flow into your Kestra instance.
  4. Execute the flow manually with glitchtip_url: http://localhost:8000 to verify connectivity.
  5. Enable the schedule trigger for continuous 15-minute background monitoring.

How to extend

  • PagerDuty / Opsgenie Escalation: Add incident management tasks to trigger on-call pages when consecutive probes enter CRITICAL state.
  • Synthetic Event Ingestion Probe: Add a task that submits a synthetic test error event via the Sentry SDK / DSN endpoint to verify the full ingestion-to-database pipeline end-to-end.
  • Celery Queue Backlog Check: Query Redis or Flower metrics to monitor Celery queue depth and auto-scale GlitchTip worker containers.
  • Prometheus Metric Export: Push probe latency and health scores to a Prometheus Pushgateway or OpenTelemetry collector for unified Grafana dashboards.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.