diff --git a/crates/metrics/src/grpc.rs b/crates/metrics/src/grpc.rs index 84f5442a..491bcbcc 100644 --- a/crates/metrics/src/grpc.rs +++ b/crates/metrics/src/grpc.rs @@ -71,4 +71,7 @@ pub fn describe_grpc_metrics() { describe_counter!(GRPC_REQUEST, "grpc request count"); describe_counter!(GRPC_REQUEST_SUCCESS, "grpc request success count"); describe_counter!(GRPC_REQUEST_FAILED, "grpc request failed count"); + counter!(GRPC_REQUEST).absolute(0); + counter!(GRPC_REQUEST_SUCCESS).absolute(0); + counter!(GRPC_REQUEST_FAILED).absolute(0); } diff --git a/crates/metrics/src/mempool.rs b/crates/metrics/src/mempool.rs index 83e192cd..4fe63a34 100644 --- a/crates/metrics/src/mempool.rs +++ b/crates/metrics/src/mempool.rs @@ -129,5 +129,12 @@ pub fn describe_mempool_metrics() { describe_counter!( REPUTATION_SET_ENTRY_ERROR, "The number of errors when setting a reputation entry" - ) + ); + counter!(MEMPOOL_ADD_ERROR).absolute(0); + counter!(MEMPOOL_REMOVE_ERROR).absolute(0); + counter!(REPUTATION_SET_ENTRY_ERROR).absolute(0); + gauge!(MEMPOOL_SIZE).set(0f64); + gauge!(REPUTATION_UO_SEEN).set(0f64); + gauge!(REPUTATION_UO_INCLUDED).set(0f64); + gauge!(REPUTATION_STATUS).set(0f64); } diff --git a/crates/metrics/src/rpc.rs b/crates/metrics/src/rpc.rs index 4caeaa42..7d55cae8 100644 --- a/crates/metrics/src/rpc.rs +++ b/crates/metrics/src/rpc.rs @@ -103,5 +103,8 @@ impl> Future for MetricsFuture { pub fn describe_json_rpc_metrics() { describe_counter!(RPC_REQUEST, "The number of json rpc requests so far"); describe_counter!(RPC_REQUEST_SUCCESS, "The number of successful json rpc requests so far"); - describe_counter!(RPC_REQUEST_FAILED, "The number of failed json rpc requests so far") + describe_counter!(RPC_REQUEST_FAILED, "The number of failed json rpc requests so far"); + counter!(RPC_REQUEST).absolute(0); + counter!(RPC_REQUEST_SUCCESS).absolute(0); + counter!(RPC_REQUEST_FAILED).absolute(0); }