Expand description
Kernel Metrics
Prometheus-compatible metrics for kernel performance monitoring.
§Metrics
rustkernel_messages_total- Total messages processedrustkernel_message_latency_seconds- Message processing latency histogramrustkernel_kernel_health- Kernel health gauge (1=healthy, 0=unhealthy)rustkernel_gpu_memory_bytes- GPU memory usagerustkernel_queue_depth- Message queue depth per kernel
§Example
ⓘ
use rustkernel_core::observability::metrics::{KernelMetrics, MetricsConfig};
// Initialize metrics
let config = MetricsConfig::prometheus(9090);
config.init().await?;
// Record kernel execution
KernelMetrics::record_execution("graph/pagerank", Duration::from_micros(150), true);Structs§
- Kernel
Metrics - Kernel-specific metrics
- Metrics
Config - Metrics configuration
- Metrics
Exporter - Metrics exporter handle
- Runtime
Metrics - Global metrics for the entire runtime