mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-06-02 11:20:51 +00:00
Hack to disable Prometheus metrics by default
This commit is contained in:
parent
2013705690
commit
0c7f7bb24d
|
@ -636,7 +636,9 @@ config :pleroma, Pleroma.Emails.UserEmail,
|
|||
|
||||
config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
|
||||
|
||||
config :prometheus, Pleroma.Web.Endpoint.MetricsExporter, path: "/api/pleroma/app_metrics"
|
||||
config :prometheus, Pleroma.Web.Endpoint.MetricsExporter,
|
||||
enabled: false,
|
||||
path: "/api/pleroma/app_metrics"
|
||||
|
||||
config :pleroma, Pleroma.ScheduledActivity,
|
||||
daily_user_limit: 25,
|
||||
|
|
|
@ -135,6 +135,7 @@ defmodule Pleroma.Application do
|
|||
end
|
||||
|
||||
defp setup_instrumenters do
|
||||
if Application.get_env(:prometheus, Pleroma.Web.Endpoint.MetricsExporter)[:enabled] do
|
||||
require Prometheus.Registry
|
||||
|
||||
if Application.get_env(:prometheus, Pleroma.Repo.Instrumenter) do
|
||||
|
@ -153,6 +154,7 @@ defmodule Pleroma.Application do
|
|||
Pleroma.Web.Endpoint.PipelineInstrumenter.setup()
|
||||
Pleroma.Web.Endpoint.Instrumenter.setup()
|
||||
end
|
||||
end
|
||||
|
||||
defp cachex_children do
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue