mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-10-31 05:51:16 +00:00
17 lines
346 B
Elixir
17 lines
346 B
Elixir
|
defmodule Pleroma.Web.AkkomaAPI.MetricsController do
|
||
|
use Pleroma.Web, :controller
|
||
|
|
||
|
alias Pleroma.Web.Plugs.OAuthScopesPlug
|
||
|
|
||
|
@unauthenticated_access %{fallback: :proceed_unauthenticated, scopes: []}
|
||
|
plug(:skip_auth)
|
||
|
|
||
|
|
||
|
def show(conn, _params) do
|
||
|
stats = TelemetryMetricsPrometheus.Core.scrape()
|
||
|
|
||
|
conn
|
||
|
|> text(stats)
|
||
|
end
|
||
|
end
|