mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-24 07:14:46 +00:00
Track store metrics by DB column (#6041)
* Track store metrics by DB column
This commit is contained in:
@@ -12,21 +12,25 @@ lazy_static! {
|
||||
try_create_int_gauge("store_disk_db_size", "Size of the hot on-disk database (bytes)");
|
||||
pub static ref FREEZER_DB_SIZE: Result<IntGauge> =
|
||||
try_create_int_gauge("store_freezer_db_size", "Size of the on-disk freezer database (bytes)");
|
||||
pub static ref DISK_DB_WRITE_BYTES: Result<IntCounter> = try_create_int_counter(
|
||||
pub static ref DISK_DB_WRITE_BYTES: Result<IntCounterVec> = try_create_int_counter_vec(
|
||||
"store_disk_db_write_bytes_total",
|
||||
"Number of bytes attempted to be written to the hot on-disk DB"
|
||||
"Number of bytes attempted to be written to the hot on-disk DB",
|
||||
&["col"],
|
||||
);
|
||||
pub static ref DISK_DB_READ_BYTES: Result<IntCounter> = try_create_int_counter(
|
||||
pub static ref DISK_DB_READ_BYTES: Result<IntCounterVec> = try_create_int_counter_vec(
|
||||
"store_disk_db_read_bytes_total",
|
||||
"Number of bytes read from the hot on-disk DB"
|
||||
"Number of bytes read from the hot on-disk DB",
|
||||
&["col"],
|
||||
);
|
||||
pub static ref DISK_DB_READ_COUNT: Result<IntCounter> = try_create_int_counter(
|
||||
pub static ref DISK_DB_READ_COUNT: Result<IntCounterVec> = try_create_int_counter_vec(
|
||||
"store_disk_db_read_count_total",
|
||||
"Total number of reads to the hot on-disk DB"
|
||||
"Total number of reads to the hot on-disk DB",
|
||||
&["col"],
|
||||
);
|
||||
pub static ref DISK_DB_WRITE_COUNT: Result<IntCounter> = try_create_int_counter(
|
||||
pub static ref DISK_DB_WRITE_COUNT: Result<IntCounterVec> = try_create_int_counter_vec(
|
||||
"store_disk_db_write_count_total",
|
||||
"Total number of writes to the hot on-disk DB"
|
||||
"Total number of writes to the hot on-disk DB",
|
||||
&["col"],
|
||||
);
|
||||
pub static ref DISK_DB_READ_TIMES: Result<Histogram> = try_create_histogram(
|
||||
"store_disk_db_read_seconds",
|
||||
@@ -36,13 +40,15 @@ lazy_static! {
|
||||
"store_disk_db_write_seconds",
|
||||
"Time taken to write bytes to store."
|
||||
);
|
||||
pub static ref DISK_DB_EXISTS_COUNT: Result<IntCounter> = try_create_int_counter(
|
||||
pub static ref DISK_DB_EXISTS_COUNT: Result<IntCounterVec> = try_create_int_counter_vec(
|
||||
"store_disk_db_exists_count_total",
|
||||
"Total number of checks if a key is in the hot on-disk DB"
|
||||
"Total number of checks if a key is in the hot on-disk DB",
|
||||
&["col"],
|
||||
);
|
||||
pub static ref DISK_DB_DELETE_COUNT: Result<IntCounter> = try_create_int_counter(
|
||||
pub static ref DISK_DB_DELETE_COUNT: Result<IntCounterVec> = try_create_int_counter_vec(
|
||||
"store_disk_db_delete_count_total",
|
||||
"Total number of deletions from the hot on-disk DB"
|
||||
"Total number of deletions from the hot on-disk DB",
|
||||
&["col"],
|
||||
);
|
||||
/*
|
||||
* Beacon State
|
||||
|
||||
Reference in New Issue
Block a user