diff --git a/database/src/metrics.rs b/database/src/metrics.rs index ea0adfa2..9b0cbef2 100644 --- a/database/src/metrics.rs +++ b/database/src/metrics.rs @@ -38,7 +38,7 @@ lazy_static! { &["method_name", "table_name"] ) .unwrap(); - pub(crate) static ref ACCOUTS_DATABASE_READ_QUERIES: IntCounterVec = register_int_counter_vec( + pub(crate) static ref ACCOUNTS_DATABASE_READ_QUERIES: IntCounterVec = register_int_counter_vec( "account_database_read_queries_counter", "Total number of accounts database reads queries by method_name and table_name", &["account_id", "shard_id", "method_name", "table_name"] diff --git a/database/src/postgres/rpc_server.rs b/database/src/postgres/rpc_server.rs index f6b06bcb..5f0bb6b6 100644 --- a/database/src/postgres/rpc_server.rs +++ b/database/src/postgres/rpc_server.rs @@ -69,7 +69,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager { "state_changes_data", ]) .inc(); - crate::metrics::ACCOUTS_DATABASE_READ_QUERIES + crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES .with_label_values(&[ account_id.as_ref(), &shard_id_pool.shard_id.to_string(), @@ -158,7 +158,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager { "state_changes_data", ]) .inc(); - crate::metrics::ACCOUTS_DATABASE_READ_QUERIES + crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES .with_label_values(&[ account_id.as_ref(), &shard_id_pool.shard_id.to_string(), @@ -223,7 +223,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager { "state_changes_data", ]) .inc(); - crate::metrics::ACCOUTS_DATABASE_READ_QUERIES + crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES .with_label_values(&[ account_id.as_ref(), &shard_id_pool.shard_id.to_string(), @@ -288,7 +288,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager { "state_changes_data", ]) .inc(); - crate::metrics::ACCOUTS_DATABASE_READ_QUERIES + crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES .with_label_values(&[ account_id.as_ref(), &shard_id_pool.shard_id.to_string(), @@ -329,7 +329,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager { "state_changes_account", ]) .inc(); - crate::metrics::ACCOUTS_DATABASE_READ_QUERIES + crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES .with_label_values(&[ account_id.as_ref(), &shard_id_pool.shard_id.to_string(), @@ -374,7 +374,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager { "state_changes_contract", ]) .inc(); - crate::metrics::ACCOUTS_DATABASE_READ_QUERIES + crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES .with_label_values(&[ account_id.as_ref(), &shard_id_pool.shard_id.to_string(), @@ -420,7 +420,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager { "state_changes_access_key", ]) .inc(); - crate::metrics::ACCOUTS_DATABASE_READ_QUERIES + crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES .with_label_values(&[ account_id.as_ref(), &shard_id_pool.shard_id.to_string(), @@ -468,7 +468,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager { "state_changes_access_key", ]) .inc(); - crate::metrics::ACCOUTS_DATABASE_READ_QUERIES + crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES .with_label_values(&[ account_id.as_ref(), &shard_id_pool.shard_id.to_string(),