Merge branch 'add-prometheus-metrics-endpoint'

From https://github.com/iv-org/invidious/pull/3576
This commit is contained in:
Fijxu
2025-03-01 03:39:04 -03:00
6 changed files with 99 additions and 0 deletions

View File

@@ -190,6 +190,7 @@ end
if CONFIG.statistics_enabled
Invidious::Jobs.register Invidious::Jobs::StatisticsRefreshJob.new(PG_DB, SOFTWARE)
add_handler Metrics::RouteMetricsCollector.new
end
if (CONFIG.use_pubsub_feeds.is_a?(Bool) && CONFIG.use_pubsub_feeds.as(Bool)) || (CONFIG.use_pubsub_feeds.is_a?(Int32) && CONFIG.use_pubsub_feeds.as(Int32) > 0)