Module metrics

Module metrics 

Source
Expand description

Kernel Metrics

Prometheus-compatible metrics for kernel performance monitoring.

§Metrics

  • rustkernel_messages_total - Total messages processed
  • rustkernel_message_latency_seconds - Message processing latency histogram
  • rustkernel_kernel_health - Kernel health gauge (1=healthy, 0=unhealthy)
  • rustkernel_gpu_memory_bytes - GPU memory usage
  • rustkernel_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§

KernelMetrics
Kernel-specific metrics
MetricsConfig
Metrics configuration
MetricsExporter
Metrics exporter handle
RuntimeMetrics
Global metrics for the entire runtime