prefix all the metrics by meilisearch_

This commit is contained in:
Tamo 2023-05-25 17:41:53 +02:00
parent c433bdd1cd
commit 35d5556f1f
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
4 changed files with 51 additions and 79 deletions

View file

@ -41,7 +41,9 @@ pub async fn get_metrics(
for (kind, value) in index_scheduler.get_stats()? {
for (value, count) in value {
crate::metrics::NB_TASKS.with_label_values(&[&kind, &value]).set(count as i64);
crate::metrics::MEILISEARCH_NB_TASKS
.with_label_values(&[&kind, &value])
.set(count as i64);
}
}