Schedule icon
Request icon
Switch icon
Log icon
SlackIncomingWebhook icon

Parca Continuous Profiling Engine and Storage Sentinel

Audit Parca continuous profiling readiness, verify FrostDB storage ingestion, evaluate profile query latency, and dispatch Slack incident alerts with Kestra.

Categories
Infrastructure

Continuously audits Parca continuous profiling service availability, verifies FrostDB storage engine readiness, evaluates profile query execution paths, and dispatches actionable Slack incident alerts upon telemetry ingestion failure or engine degradation.

How it works

  1. A recurrent Schedule trigger initiates the sentinel audit workflow every 2 hours (disabled initially for on-demand configuration).
  2. The probe_parca_readiness task queries the Parca /readyz endpoint to confirm FrostDB columnar datastore initialization, memory allocator stability, and query coordinator readiness.
  3. The probe_parca_metrics task queries /metrics to ensure internal telemetry, block compaction pipelines, and scraper metrics are responsive.
  4. The probe_profile_query task posts a canary profile query to /api/v1/query to evaluate real-time Arrow flamegraph generation and query responsiveness.
  5. The evaluate_parca_health task evaluates response codes using Pebble conditionals inside a Switch task, classifying health into COMPLIANT, ENGINE_UNHEALTHY, METRICS_SCRAPE_ERROR, or QUERY_EXECUTION_FAILED.
  6. When degradation is detected, contextual Slack notifications are posted via io.kestra.plugin.slack.notifications.SlackIncomingWebhook with diagnostic details, and a permanent audit trail is preserved in Kestra's execution history.

What you get

  • Automated operational surveillance over eBPF continuous profiling clusters and FrostDB storage nodes.
  • Early warning when memory consumption spikes prevent Parca from executing profile queries or flamegraphs.
  • Continuous validation that Parca scraper daemons and Prometheus metric exports remain healthy.
  • Actionable Slack notifications directing engineers straight to failing endpoints and query errors.
  • Centralized, revision-controlled execution audit logs for compliance and performance reviews.

Who it's for

  • Platform Engineers and SREs maintaining production continuous profiling infrastructure.
  • Performance Engineers identifying CPU bottlenecks, memory leaks, and goroutine starvation across microservices.
  • DevOps Teams operating automated deployment pipelines dependent on continuous observability.

Why orchestrate this with Kestra

  • Declarative Observability Governance: Codify profiling audit cadences, target queries, and notification channels as version-controlled YAML blueprints.
  • Native Secret Isolation: Inject Slack webhook credentials securely using Kestra namespace secrets via {{ secret(...) }} without plaintext exposure.
  • Multi-Branch Flow Routing: Automatically isolate storage engine crashes from metric scraper degradation or query syntax errors using native Switch tasks.
  • Auditable Execution Telemetry: Maintain complete execution logs and HTTP diagnostic status codes across every audit run.

Prerequisites

  • A running Parca continuous profiling server (accessible over HTTP) with REST and gRPC gateway enabled (default port 7070).
  • Network reachability from the Kestra worker or runner environment to the Parca HTTP endpoint.
  • A Slack Incoming Webhook URL configured with permission to post into your target operations channel.

Secrets

  • SLACK_WEBHOOK_URL: Slack Incoming Webhook URL used for routing operational alerts and incidents.

Quick start

  1. Configure the SLACK_WEBHOOK_URL secret in your Kestra namespace settings.
  2. Import this blueprint into your Kestra instance (e.g., under namespace company.platform).
  3. Click Execute with default parameters or supply your custom parca_url and canary_query.
  4. Confirm that execution logs display successful HTTP 200 response codes under the Executions tab.
  5. Activate the scheduled_sentinel_audit trigger to establish recurrent automated Parca health monitoring.

How to extend

  • Automated Memory Dump: Extend the ENGINE_UNHEALTHY branch to capture heap profiles or FrostDB diagnostics before restarting pods.
  • Multi-Cluster Sweep: Wrap the readiness and query probes inside a Loop task to evaluate Parca instances across multiple Kubernetes clusters in a single workflow.
  • PagerDuty Escalation: Route ENGINE_UNHEALTHY events directly to on-call schedules in PagerDuty or Opsgenie.
  • Pre-Release Performance Gate: Chain this flow as a prerequisite task before load-testing canary deployments to confirm profiling telemetry is active.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.