Apache Pulsar multi-tenant backlog quarantine and priority event router
Drain a multi-tenant Pulsar topic and route each batch by tenant priority tier, logging ENTERPRISE traffic and quarantining the rest, with a Slack report per run.
Audit Gotify push notification gateway health, monitor registered application token validity, and alert via Slack to prevent mobile alert delivery failures.
Gotify is an open-source, self-hosted push notification and message routing server written in Go with embedded SQLite storage, WebSocket real-time feeds, and a lightweight REST API. Widely adopted across DevOps teams, on-call engineering rotations, and private cloud infrastructure, Gotify provides an independent push notification backbone that eliminates reliance on commercial cloud push services. However, in production telemetry and alert aggregation pipelines, unhandled SQLite database locks, expired client application tokens, or container network partitions can cause push alerts to drop silently, leaving on-call engineers unaware of upstream incidents. This blueprint deploys an automated operational sentinel that polls Gotify core health endpoints, audits registered client applications, routes structured alerts to Slack, and maintains execution audit lineage.
periodic_gotify_audit (io.kestra.plugin.core.trigger.Schedule) initiates scheduled monitoring every 15 minutes. Shipped disabled so initial connectivity can be verified manually.probe_gateway_health (io.kestra.plugin.core.http.Request) invokes GET /health to confirm Go runtime health and internal SQLite database read/write responsiveness.probe_gateway_version (io.kestra.plugin.core.http.Request) invokes GET /version to inspect daemon version metadata and verify REST engine stability.probe_application_catalog (io.kestra.plugin.core.http.Request) invokes GET /application using an administrative token to audit registered push notification clients.classify_gateway_status (io.kestra.plugin.core.flow.Switch) evaluates probe results:GATEWAY_UNHEALTHY: Fires if /health returns non-200 or health status is not green, dispatching a high-priority incident alert via io.kestra.plugin.slack.notifications.SlackIncomingWebhook.EMPTY_APPLICATION_CATALOG: Fires when registered client applications drop to zero, warning administrators of potential credential or migration loss.HEALTHY: Confirms that both daemon runtime and message queues operate nominally.log_sentinel_audit_summary (io.kestra.plugin.core.log.Log) records an immutable execution record documenting evaluated status codes and execution lineage.errors handler catches network connection drops, timeouts, or container crashes, firing an emergency alert to Slack.dry_run: true prevents automated mutations during cluster audits.Gotify provides high-performance push routing but lacks built-in alerting, cron scheduling, and multi-channel incident escalation. Relying on custom shell scripts or ad-hoc cron jobs introduces maintenance overhead, hard-coded credentials, and zero execution visibility. Kestra provides a declarative YAML blueprint featuring scheduled triggers, masked secret management, conditional branching, and comprehensive execution observability.
gotify/server:latest) requiring zero commercial licensing.SLACK_WEBHOOK_URL: Slack incoming webhook URL for operational notifications and incident routing.GOTIFY_CLIENT_TOKEN: Administrative client token with permissions to query Gotify registered applications.docker run -d --name gotify-test -p 8080:80 -e GOTIFY_DEFAULTUSER_PASS=admin gotify/server:latest
http://localhost:8080 (admin/admin), navigate to Clients, and generate an administrative client token.SLACK_WEBHOOK_URL and GOTIFY_CLIENT_TOKEN in your Kestra namespace secrets.dry_run: true).log_healthy_state records a successful health check response (health: green).docker stop gotify-test) and re-running the flow to verify alert_gotify_network_failure.periodic_gotify_audit to activate recurring 15-minute surveillance.POST /message to test end-to-end client push latency.io.kestra.plugin.pagerduty.notifications.PagerDutyAlert for high-severity push infrastructure outages.io.kestra.plugin.aws.s3.Upload.