1
0
Fork 0
forked from gitea/nas

Start local prometheus_exporter server only in puma/sidekiq startup (#35005)

This commit is contained in:
David Roetzel 2025-06-11 15:37:59 +02:00 committed by GitHub
parent 722fb1ff55
commit 1623d54ec0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 33 additions and 7 deletions

View file

@ -26,6 +26,12 @@ Sidekiq.configure_server do |config|
require 'prometheus_exporter'
require 'prometheus_exporter/instrumentation'
if ENV['MASTODON_PROMETHEUS_EXPORTER_LOCAL'] == 'true'
config.on :startup do
Mastodon::PrometheusExporter::LocalServer.setup!
end
end
config.on :startup do
# Ruby process metrics (memory, GC, etc)
PrometheusExporter::Instrumentation::Process.start type: 'sidekiq'