Request icon
Switch icon
SlackIncomingWebhook icon
Log icon
Schedule icon

VictoriaLogs Log Ingestion and Storage Sentinel

Monitor VictoriaLogs cluster node health and error log surges with LogSQL, evaluate thresholds using Pebble, and route alerts to Slack with Kestra.

Categories
Infrastructure

Automated health gate and error surge sentinel for VictoriaLogs high-throughput log management clusters. This workflow continuously validates node availability, executes LogSQL queries to detect application error bursts, evaluates operational thresholds using declarative Pebble expressions, and dispatches incident notifications to Slack.

How it works

  1. Scheduled trigger initiates the sentinel check hourly (or manually on demand with custom parameters).
  2. Probes the VictoriaLogs /health HTTP endpoint to ensure the storage node is accessible and responsive.
  3. Issues a LogSQL query via the VictoriaLogs /select/logsql/hits API endpoint to calculate the volume of error-level logs over the preceding 15-minute window.
  4. Evaluates cluster responsiveness and error thresholds via a declarative Pebble expression inside a Switch task.
  5. Dispatches formatted Slack alerts on critical node outages or elevated error surges, or logs an operational confirmation when metrics remain nominal.
  6. Emits an immutable audit log entry recording probe response codes, error frequencies, and state classifications.

What you get

  • Continuous verification of VictoriaLogs ingestion engine readiness and node liveness.
  • Automated detection of critical log spikes across microservices before they cascade.
  • Real-time Slack incident notifications containing exact error counts and endpoint details.
  • Structured audit logs stored within Kestra for long-term reliability and compliance tracking.

Who it's for

  • Platform Engineers maintaining high-throughput logging infrastructure.
  • Site Reliability Engineers (SREs) managing distributed observability clusters.
  • DevOps Teams operating VictoriaMetrics and VictoriaLogs in Kubernetes or cloud environments.

Why orchestrate this with Kestra

  • Declarative YAML definition replaces bespoke Python monitoring scripts and brittle crontabs.
  • Native Pebble expression engine provides deterministic status classification without external runtime overhead.
  • Centralized secret management protects authentication tokens and webhook endpoints with end-to-end encryption.
  • Built-in audit trail and visual topology deliver instant execution transparency across all tasks.

Prerequisites

  • Accessible VictoriaLogs server instance (local Docker container, virtual machine, or Kubernetes cluster).
  • Valid read credentials or bearer token for VictoriaLogs query endpoints.
  • Slack Incoming Webhook URL configured with write permissions for your alerts channel.

Secrets

  • VICTORIALOGS_AUTH_TOKEN: Bearer token or API key for authenticating HTTP requests to VictoriaLogs.
  • SLACK_WEBHOOK_URL: HTTPS endpoint for posting notifications to the operations Slack channel.

Quick start

  1. Configure VICTORIALOGS_AUTH_TOKEN and SLACK_WEBHOOK_URL in your Kestra namespace secrets.
  2. Import this blueprint into Kestra and run Execute with default parameters to test cluster connectivity.
  3. Verify in the execution logs that /health returned HTTP 200 and the LogSQL query evaluated cleanly.
  4. Activate the hourly_sentinel_schedule trigger for continuous unattended monitoring.

How to extend

  • Add automated PagerDuty or Opsgenie escalation paths for off-hours critical downtime alerts.
  • Chain Kubernetes or Docker restart tasks to automatically recycle unresponsive VictoriaLogs pods.
  • Parameterize queries to scan specific application streams or tenant namespaces in parallel.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.