1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use lazy_static::lazy_static;
use prometheus::*;
lazy_static! {
pub static ref FUTUREPOOL_RUNNING_TASK_VEC: IntGaugeVec = register_int_gauge_vec!(
"tikv_futurepool_pending_task_total",
"Current future_pool pending + running tasks.",
&["name"]
)
.unwrap();
pub static ref FUTUREPOOL_HANDLED_TASK_VEC: IntCounterVec = register_int_counter_vec!(
"tikv_futurepool_handled_task_total",
"Total number of future_pool handled tasks.",
&["name"]
)
.unwrap();
pub static ref FUTUREPOOL_SCHEDULE_DURATION_VEC: HistogramVec = register_histogram_vec!(
"tikv_futurepool_schedule_duration",
"Histogram of future_pool handle duration.",
&["name"],
exponential_buckets(0.0005, 2.0, 15).unwrap()
)
.unwrap();
}