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

@ -52,11 +52,11 @@ where
if is_registered_resource {
let request_method = req.method().to_string();
histogram_timer = Some(
crate::metrics::HTTP_RESPONSE_TIME_SECONDS
crate::metrics::MEILISEARCH_HTTP_RESPONSE_TIME_SECONDS
.with_label_values(&[&request_method, request_path])
.start_timer(),
);
crate::metrics::HTTP_REQUESTS_TOTAL
crate::metrics::MEILISEARCH_HTTP_REQUESTS_TOTAL
.with_label_values(&[&request_method, request_path])
.inc();
}