use lazy_static::lazy_static;
use prometheus::*;
lazy_static! {
pub static ref DIST_CREATE_TABLE: Histogram = register_histogram!(
"greptime_table_operator_create_table",
"table operator create table"
)
.unwrap();
pub static ref DIST_CREATE_TABLES: Histogram = register_histogram!(
"greptime_table_operator_create_tables",
"table operator create table"
)
.unwrap();
pub static ref DIST_ALTER_TABLES: Histogram = register_histogram!(
"greptime_table_operator_alter_tables",
"table operator alter table"
)
.unwrap();
pub static ref DIST_INGEST_ROW_COUNT: IntCounter = register_int_counter!(
"greptime_table_operator_ingest_rows",
"table operator ingest rows"
)
.unwrap();
pub static ref DIST_MIRROR_ROW_COUNT: IntCounter = register_int_counter!(
"greptime_table_operator_mirror_rows",
"table operator mirror rows"
)
.unwrap();
pub static ref DIST_DELETE_ROW_COUNT: IntCounter = register_int_counter!(
"greptime_table_operator_delete_rows",
"table operator delete rows"
)
.unwrap();
pub static ref DIST_CREATE_VIEW: Histogram = register_histogram!(
"greptime_ddl_operator_create_view",
"DDL operator create view"
)
.unwrap();
pub static ref CREATE_ALTER_ON_DEMAND: HistogramVec = register_histogram_vec!(
"greptime_table_operator_create_alter_on_demand",
"table operator duration to create or alter tables on demand",
&["table_type"]
)
.unwrap();
}