mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-18 17:11:15 +08:00
Update meilisearch-http/src/routes/mod.rs
Co-authored-by: Tamo <irevoire@protonmail.ch>
This commit is contained in:
parent
d08c77706c
commit
93daa4c464
@ -280,7 +280,6 @@ pub async fn get_metrics(
|
|||||||
let response = meilisearch.get_all_stats(search_rules).await?;
|
let response = meilisearch.get_all_stats(search_rules).await?;
|
||||||
|
|
||||||
crate::metrics::MEILISEARCH_DB_SIZE.set(response.database_size as i64);
|
crate::metrics::MEILISEARCH_DB_SIZE.set(response.database_size as i64);
|
||||||
|
|
||||||
crate::metrics::MEILISEARCH_INDEX_COUNT.set(response.indexes.len() as i64);
|
crate::metrics::MEILISEARCH_INDEX_COUNT.set(response.indexes.len() as i64);
|
||||||
|
|
||||||
for (index, value) in response.indexes.iter() {
|
for (index, value) in response.indexes.iter() {
|
||||||
|
Loading…
Reference in New Issue
Block a user