mirror of
https://github.com/telemt/telemt.git
synced 2026-05-13 23:31:44 +03:00
Shard TLS full-cert budget tracking + Bound user-labeled metrics export cardinality
This commit is contained in:
@@ -2477,6 +2477,11 @@ impl Stats {
|
||||
self.user_stats.iter()
|
||||
}
|
||||
|
||||
/// Current number of retained per-user stats entries.
|
||||
pub fn user_stats_len(&self) -> usize {
|
||||
self.user_stats.len()
|
||||
}
|
||||
|
||||
pub fn uptime_secs(&self) -> f64 {
|
||||
self.start_time
|
||||
.read()
|
||||
|
||||
Reference in New Issue
Block a user