Grafana-to-GitHub alert bridge with metric classification#3224
Open
Grafana-to-GitHub alert bridge with metric classification#3224
Conversation
x3c41a
commented
Feb 18, 2026
| steps: | ||
| - uses: anthropics/claude-code-action@v1 | ||
| with: | ||
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} |
Contributor
Author
There was a problem hiding this comment.
it should be a service account
x3c41a
commented
Feb 18, 2026
Contributor
Author
There was a problem hiding this comment.
it might be hosted on Parity's public infra if any...
x3c41a
commented
Feb 26, 2026
Contributor
Author
There was a problem hiding this comment.
Not sure if that's (deployments/local-scripts/grafana-github-bridge/) the right place for this bridge but I could not find a better one
0663195 to
c10b545
Compare
x3c41a
commented
Feb 26, 2026
.github/workflows/claude-sre.yml
Outdated
| issues: write | ||
| env: | ||
| # Grafana API access for live metric queries. | ||
| # Claude can use: curl -H "Authorization: Bearer $GRAFANA_TOKEN" "$GRAFANA_URL/api/..." |
Contributor
Author
There was a problem hiding this comment.
These are set in Github's Project settings
x3c41a
commented
Feb 26, 2026
Contributor
Author
There was a problem hiding this comment.
Extracted to a separate PR - #3236 - but may be merged as part of this PR
fc90b20 to
ef89177
Compare
Cloudflare Worker that converts Grafana Alertmanager webhooks into categorized GitHub issues, triggering a Claude Code agent (Haiku) to diagnose and act on bridge alerts. - Classifies 28 bridge alerts into 8 categories (finality-lag, delivery-lag, confirmation-lag, reward-lag, relay-down, version-guard, headers-mismatch, low-balance) - Detects environment and bridge pair from alert names - GitHub Action triggers on issue label:claude, uses Grafana API - Located in deployments/local-scripts/grafana-github-bridge/
ef89177 to
8b606c0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
design doc
Summary
Cloudflare Worker that converts Grafana Alertmanager webhooks into categorized GitHub issues, triggering a Claude Code agent to diagnose and act on bridge alerts.
flowchart TD P["Prometheus :9615"] --> G["Grafana Alert Rules"] G --> AM["Alertmanager"] AM -->|webhook| W["Cloudflare Worker"] AM -->|webhook| M["Matrix"] W -->|"warning + known"| T["Issue: label claude"] W -->|"critical / unknown"| E["Issue: label claude-escalate"] T -->|Haiku| H["Fast Triage"] E -->|Sonnet| S["Deep Investigation"] H --> V["Engineer Reviews"] S --> Vhttps://grafana-github-bridge.parity-bridges.workers.devdeployments/local-scripts/grafana-github-bridge/Grafana notification policy
Test plan
firingcreates issues)domainlabel and chain name fallbackGITHUB_TOKENsecret and verify issue creation end-to-end🤖 Generated with Claude Code