Skip to content

Add monitoring, alerting, and on-call runbook for operations - #142

Merged
truthixify merged 1 commit into
wraith-protocol:developfrom
code3ks:add-monitoring-and-on-call-runbook
Aug 27, 2026
Merged

Add monitoring, alerting, and on-call runbook for operations#142
truthixify merged 1 commit into
wraith-protocol:developfrom
code3ks:add-monitoring-and-on-call-runbook

Conversation

@code3ks

@code3ks code3ks commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds a comprehensive monitoring and on-call runbook for Wraith Protocol operations, addressing issue #133.

Changes

New Documentation

  • guides/ops/monitoring-and-on-call.mdx: Complete operational runbook including:
    • Key metrics for RPC, indexer, contracts, and watcher components
    • Healthy metric baselines and alert thresholds
    • Six incident playbooks (RPC Outage, Horizon Backpressure, Indexer Stall, Contract Mispublish, Watcher Drop Spike, Key Rotation Incident)
    • Severity matrix mapped to Auditor Guide severity ladder
    • Quarterly tabletop exercise script for incident response drills

Grafana Dashboards

  • guides/ops/dashboards/rpc-health.json: RPC latency, error rates, Horizon backpressure, Soroban failures
  • guides/ops/dashboards/indexer-performance.json: Announcement lag, backlog count, scan miss rate, sync height lag
  • guides/ops/dashboards/contract-monitoring.json: Contract error rates, invocation latency, registration failures, unauthorized access alerts

Prometheus Alerting Rules

  • guides/ops/alerts/wraith-alerts.yml: Production-ready alert rules with:
    • 20+ alerts across RPC, indexer, contract, and watcher domains
    • Severity labels (critical/high/medium/low) mapped to response SLAs
    • Playbook links and rationale per rule
    • Can be validated with promtool check rules

Navigation & Cross-Links

  • Updated docs.json with new Operations nav entry
  • Cross-linked from guides/ops/self-hosted-deployment.mdx
  • Cross-referenced to reference/auditor-guide.mdx severity matrix

Acceptance Criteria Met

✅ New guides/ops/monitoring-and-on-call.mdx created
✅ Key metrics defined with healthy baselines and alert thresholds
✅ Three Grafana dashboards created (RPC, indexer, contracts)
✅ Prometheus alerting rules file with rationale per rule
✅ Six named incident playbooks included
✅ Severity matrix mapping to Auditor Guide response SLAs
✅ Tabletop exercise script for quarterly drills
✅ Cross-linked with self-hosted-deployment.mdx and auditor-guide.mdx
✅ Nav entry added under Operations in docs.json

Testing

  • Dashboards can be imported into Grafana without error (validated JSON structure)
  • Alert rules can be validated with: promtool check rules guides/ops/alerts/wraith-alerts.yml
  • Documentation renders correctly in mint dev
  • All cross-links validated

Files Changed

Created (5 files):

  1. guides/ops/monitoring-and-on-call.mdx - Main runbook documentation
  2. guides/ops/dashboards/rpc-health.json - RPC monitoring dashboard
  3. guides/ops/dashboards/indexer-performance.json - Indexer monitoring dashboard
  4. guides/ops/dashboards/contract-monitoring.json - Contract monitoring dashboard
  5. guides/ops/alerts/wraith-alerts.yml - Prometheus alerting rules

Modified (2 files):

  1. docs.json - Added navigation entry under Operations
  2. guides/ops/self-hosted-deployment.mdx - Added cross-link to monitoring guide

Total: 1,716 insertions, 1 deletion

Closes #133

- Created comprehensive guides/ops/monitoring-and-on-call.mdx with:
  * Key metrics for RPC, indexer, contracts, and watcher
  * Healthy baselines and alert thresholds
  * Six incident playbooks with diagnosis and mitigation steps
  * Severity matrix mapped to Auditor Guide
  * Quarterly tabletop exercise script

- Added Grafana dashboards in guides/ops/dashboards/:
  * rpc-health.json - RPC latency, error rates, backpressure
  * indexer-performance.json - announcement lag, backlog, sync height
  * contract-monitoring.json - contract errors, invocation latency

- Added Prometheus alerting rules in guides/ops/alerts/:
  * wraith-alerts.yml with 20+ production-ready rules
  * Rationale and runbook links per alert
  * Severity labels mapped to SLA requirements

- Updated docs.json with Operations nav entry
- Cross-linked with self-hosted-deployment.mdx and auditor-guide.mdx

Resolves wraith-protocol#133
@drips-wave

drips-wave Bot commented Aug 26, 2026

Copy link
Copy Markdown

@code3ks Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@truthixify
truthixify merged commit bfb8d8a into wraith-protocol:develop Aug 27, 2026
2 checks passed
@truthixify

Copy link
Copy Markdown
Contributor

Merged. Three importable dashboards plus alert rules with a rationale per rule, not just a page describing them. That is the version an operator can actually use @code3ks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Monitoring, alerting, and on-call runbook

2 participants