You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/apollo_gateway/src/metrics.rs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ use apollo_infra::metrics::{
14
14
use apollo_metrics::metrics::LabeledMetricCounter;
15
15
use apollo_metrics::{define_infra_metrics, define_metrics, generate_permutation_labels};
16
16
use apollo_network_types::network_types::BroadcastedMessageMetadata;
17
+
use blockifier::metrics::CacheMetrics;
17
18
use starknet_api::rpc_transaction::{RpcTransaction,RpcTransactionLabelValue};
18
19
use strum::{EnumVariantNames,VariantNames};
19
20
use strum_macros::IntoStaticStr;
@@ -39,6 +40,8 @@ define_infra_metrics!(gateway);
39
40
40
41
define_metrics!(
41
42
Gateway => {
43
+
MetricCounter{CLASS_CACHE_MISSES,"gateway_class_cache_misses","Counter of the gateway's global class cache misses", init=0},
44
+
MetricCounter{CLASS_CACHE_HITS,"gateway_class_cache_hits","Counter of the gateway's global class cache hits", init=0},
42
45
LabeledMetricCounter{GATEWAY_TRANSACTIONS_RECEIVED,"gateway_transactions_received","Counter of transactions received", init = 0, labels = TRANSACTION_TYPE_AND_SOURCE_LABELS},
43
46
LabeledMetricCounter{GATEWAY_TRANSACTIONS_FAILED,"gateway_transactions_failed","Counter of failed transactions", init = 0, labels = TRANSACTION_TYPE_AND_SOURCE_LABELS},
44
47
LabeledMetricCounter{GATEWAY_TRANSACTIONS_SENT_TO_MEMPOOL,"gateway_transactions_sent_to_mempool","Counter of transactions sent to the mempool", init = 0, labels = TRANSACTION_TYPE_AND_SOURCE_LABELS},
@@ -243,7 +246,11 @@ impl Drop for GatewayMetricHandle {
0 commit comments