- add: metrics exporting
This commit is contained in:
@@ -11,6 +11,12 @@ lazy_static! {
|
||||
"Total number of packets received"
|
||||
).unwrap();
|
||||
|
||||
// Counter to track the number of packets sent
|
||||
pub static ref PACKETS_SENT: Counter = register_counter!(
|
||||
"packets_sent_total",
|
||||
"Total number of packets sent"
|
||||
).unwrap();
|
||||
|
||||
// Gauge to track the number of active connections
|
||||
pub static ref ACTIVE_CONNECTIONS: Gauge = register_gauge!(
|
||||
"active_connections",
|
||||
|
||||
Reference in New Issue
Block a user