Enable /metrics without auth.

To enable auth faster.
This commit is contained in:
Arseny Sher
2023-10-10 17:24:57 +03:00
committed by Arseny Sher
parent d4dc86f8e3
commit 685add2009
2 changed files with 7 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ impl State {
disk_usage_eviction_state: Arc<disk_usage_eviction_task::State>,
deletion_queue_client: DeletionQueueClient,
) -> anyhow::Result<Self> {
let allowlist_routes = ["/v1/status", "/v1/doc", "/swagger.yml"]
let allowlist_routes = ["/v1/status", "/v1/doc", "/swagger.yml", "/metrics"]
.iter()
.map(|v| v.parse().unwrap())
.collect::<Vec<_>>();