Expand description
Alert routing system for enterprise monitoring.
This module provides a pluggable alert routing system with support for multiple destinations including webhooks (Slack, Teams, PagerDuty), email, and custom sinks.
§Feature Flags
alerting- Enables HTTP webhook delivery (requiresreqwestcrate)
§Example
ⓘ
use ringkernel_core::alerting::{AlertRouter, Alert, AlertSeverity, WebhookSink};
let router = AlertRouter::new()
.with_sink(WebhookSink::new("https://hooks.slack.com/services/...")
.with_severity_filter(AlertSeverity::Warning))
.with_sink(WebhookSink::pagerduty("your-integration-key")
.with_severity_filter(AlertSeverity::Critical));
router.send(Alert::new(AlertSeverity::Critical, "GPU memory exhausted")
.with_source("kernel_1")
.with_metadata("gpu_id", "0")
.with_metadata("memory_used_gb", "24.5"));Structs§
- Alert
- An alert to be routed to sinks.
- Alert
Router - Alert router that sends alerts to multiple sinks.
- Alert
Router Stats - Alert router statistics.
- Deduplication
Config - Configuration for alert deduplication.
- InMemory
Sink - Alert sink that stores alerts in memory (for testing).
- LogSink
- Alert sink that writes to the tracing/log system.
Enums§
- Alert
Severity - Alert severity levels.
- Alert
Sink Error - Error type for alert sink operations.
Traits§
- Alert
Sink - Trait for pluggable alert destinations.
Type Aliases§
- Alert
Sink Result - Result type for alert sink operations.