add a view for the task queue in the metrics

This commit is contained in:
Tamo 2023-05-25 12:58:13 +02:00
parent 1b601f70c6
commit c433bdd1cd
4 changed files with 1352 additions and 962 deletions

View file

@ -40,4 +40,7 @@ lazy_static! {
HTTP_RESPONSE_TIME_CUSTOM_BUCKETS.to_vec()
)
.expect("Can't create a metric");
pub static ref NB_TASKS: IntGaugeVec =
register_int_gauge_vec!(opts!("nb_tasks", "Number of tasks"), &["kind", "value"])
.expect("Can't create a metric");
}