pub enum SystemEvent {
MetricsDropped {
count: u64,
reason: String,
},
StorageError {
error: String,
event_type: String,
},
WorkerStarted,
WorkerStopped,
}Expand description
System-level events for operational metrics and monitoring.
These events track the health and operation of the metrics system itself, providing visibility into system behavior, errors, and resource management. They are primarily used for operational monitoring and debugging.
§Use Cases
- Monitoring system health and stability
- Tracking metrics collection reliability
- Identifying storage or processing issues
- Understanding worker lifecycle
Variants§
MetricsDropped
Emitted when metrics events are dropped due to errors or resource constraints.
This typically indicates system stress or configuration issues that should be investigated.
§Fields
count: Number of events that were droppedreason: Human-readable explanation of why events were dropped
Fields
StorageError
Emitted when a storage operation fails.
Tracks errors in persisting metrics to the storage backend, helping identify database issues or data quality problems.
§Fields
error: Description of the storage errorevent_type: Type of event that failed to be stored
Fields
WorkerStarted
Emitted when a metrics processing worker starts.
Indicates that a new worker thread/task has begun processing metrics events from the event queue.
WorkerStopped
Emitted when a metrics processing worker stops.
Indicates that a worker has shut down, either gracefully or due to an error. Used to track worker lifecycle and system capacity.
Trait Implementations§
Source§impl Clone for SystemEvent
impl Clone for SystemEvent
Source§fn clone(&self) -> SystemEvent
fn clone(&self) -> SystemEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more