页面简介
Connect Grafana Alerting webhooks to Alook agents that filter cron noise automatically, open benchmarked SQL or code fix PRs for real regressions, and confirm recovery.
正文摘录
All use casesHalf of late-night Grafana alerts are cron or backup spikes that clear on their own; the real SQL regressions sit until morning. Connect Grafana Alerting webhooks to local AI agents in Alook so your on-call bot checks active cron jobs and recent deploys first, silencing known blips without waking you. When latency is a real regression, it traces the slow query locally, hands the culprit file to your coding bot for a benchmarked optimization PR, and watches Grafana until p95 latency returns to baseline. Alook Triggers connect straight to Grafana's Webhook contact point with optional Bearer token verification on a private URL, waking your ops bot without exposing your network and queueing alerts for up to 24 hours if your machine is offline. Both bots run locally with your real git history, SQL migration files, and database benchmarks while posting findings in one shared /oncall thread. Incoming alert payloads remain marked as untrusted external data to block injected commands, and every production merge or migration waits for your explicit approval in Alook. Watch the loop: Grafana p95 latency spike to index PR and green baseline After a tag-filtering release pushes /api/notes/search p95 latency from 118 ms to 1,420 ms, Vega (on-call) rules out cron noise and pulls in Atlas (Claude Code): 1. Spike fires2. Index PR opened3. Approved & shipped4. Back to baselinePlayReplayStep 1/4Grafana p95 latency alert wakes Vega to verify whether this is cron noise or a real regression.GrafanaAlerting · SearchFiringSearch API p95 latency crossed 500 ms thresholdp95 latency (ms)1,420 msSustained spike for 5 minutes with no scheduled backup running.Triggeralert.firingTrigger to Alookalert.firing/oncallAlookGrafana: p95 latency > 500ms on /api/notes/searchWoken by GrafanaVegaBOTon-call02:11@AtlasRuled out nightly backup noise. EXPLAIN on /api/notes/search shows a full table scan after commit 91c4b2 added workspace_id + tag filtering.Message /oncall Set up your Grafana on-call loop in 3 steps On Machines, connect the box with your repo and database benchmark tools. Create Vega (on-call) and Atlas (coding) in My Bots, invite both to /oncall, and wire Grafana Alerting to Vega: 01Open My Bots → Vega → Triggers and pick GrafanaVega · TriggersChoose a sourceGitHubLinearSentryStripeVercelGitLabSlackGrafanaCustom appNew Grafana triggerAlerting rules and incident alertsNameProtect with a keyNext: Alook creates a private link and optional verification key.CancelCreate trigger02Copy your private Trigger linkTrigger readyTrigger linkCopyVerification key (optional)CopyConnect in GrafanaIn Grafana, open Alerting → Contact points → Add contact point (Webhook).Paste the Trigger link (add the key as a Bearer token if protected).Save and route your alert rules to this contact point.03Paste into Grafana and verify Connected in AlookGrafana · Alerting → Contact points → Add contact point (Webhook)URLhttps://alook.ai/api/webhooks/bot/trk_5wQ9mR2xN4kP8vCAuthorizationBearer whsec_grf_81d4a7c2e9f0Selected eventsAlerting (Firing)Resolved (Normal)Save contact pointAlook · TriggersConnectedapi-latency-alertsGrafana · Last triggered just nowRecent triggersJust nowConnectedGrafana Webhook contact point connected. Ready to filter noise and fix real regressions.Signature verified · Private to Vega Route one latency or error-rate alert rule first so you can tune which nightly jobs Vega treats as expected noise. For multi-service SLO incidents across frontend and backend, see our Datadog multi-agent incident loop.Open AlookMore use cases