Add prometheus metrics at /api/v1/metrics

This commit is contained in:
wint3rmute
2023-01-18 00:33:55 +01:00
committed by Mateusz Bączek
parent 1c0b4205d4
commit 4d410d124f
4 changed files with 24 additions and 0 deletions

View File

@@ -310,6 +310,9 @@ module Invidious::Routing
# Misc
get "/api/v1/stats", {{namespace}}::Misc, :stats
if CONFIG.statistics_enabled
get "/api/v1/metrics", {{namespace}}::Misc, :metrics
end
get "/api/v1/playlists/:plid", {{namespace}}::Misc, :get_playlist
get "/api/v1/auth/playlists/:plid", {{namespace}}::Misc, :get_playlist
get "/api/v1/mixes/:rdid", {{namespace}}::Misc, :mixes