Expand description
Monitoring, health checks, and performance metrics. Monitoring and Metrics Collection Module
This module provides comprehensive monitoring capabilities for the authentication framework, including metrics collection, performance monitoring, security event tracking, and integration with external monitoring systems.
§Features
- Performance Metrics: Track authentication performance, latency, and throughput
- Security Monitoring: Monitor security events, failed attempts, and anomalies
- Health Checks: Provide health status for all authentication components
- Custom Metrics: Support for application-specific metrics
- Integration: Export metrics to Prometheus, Grafana, DataDog, etc.
- Alerting: Configuration-based alerting for critical events
Re-exports§
pub use collectors::AUTH_FAILED_REQUESTS;pub use collectors::AUTH_SUCCESSFUL_REQUESTS;pub use collectors::AUTH_TOTAL_REQUESTS;pub use collectors::SESSION_ACTIVE_COUNT;pub use collectors::SESSION_CREATED_TOTAL;pub use collectors::SESSION_EXPIRED_COUNT;pub use collectors::TOKEN_CREATION_COUNT;pub use collectors::TOKEN_EXPIRATION_COUNT;pub use collectors::TOKEN_VALIDATION_COUNT;
Modules§
- alerts
- Alerting system for security and performance monitoring
- collectors
- Metrics collectors for various authentication framework components
- exporters
- Metrics exporters for external monitoring systems
- health
- Health check system for authentication framework components
Structs§
- Health
Check Result - Health check result
- Metric
Data Point - Metric data point
- Monitoring
Config - Monitoring configuration
- Monitoring
Manager - Main monitoring manager
- Performance
Metrics - Performance metrics
- Security
Event - Security event for monitoring
- Security
Event Builder - Ergonomic builder for
SecurityEvent.
Enums§
- Health
Status - Health check status
- Metric
Type - Types of metrics
- Security
Event Severity - Security event severity levels
- Security
Event Type - Security event types