Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7889930
prom_ex.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
prom_ex.ex
View Options
defmodule
Pleroma.PromEx
do
use
PromEx
,
otp_app
:
:pleroma
alias
PromEx.Plugins
@impl
true
def
plugins
do
[
# PromEx built in plugins
Plugins.Application
,
Plugins.Beam
,
{
Plugins.Phoenix
,
router
:
Pleroma.Web.Router
,
endpoint
:
Pleroma.Web.Endpoint
},
Plugins.Ecto
,
Plugins.Oban
# Plugins.PhoenixLiveView,
# Plugins.Absinthe,
# Plugins.Broadway,
# Add your own PromEx metrics plugins
# Pleroma.Users.PromExPlugin
]
end
@impl
true
def
dashboard_assigns
do
[
datasource_id
:
Pleroma.Config
.
get
([
Pleroma.PromEx
,
:datasource
]),
default_selected_interval
:
"30s"
]
end
@impl
true
def
dashboards
do
[
# PromEx built in Grafana dashboards
{
:prom_ex
,
"application.json"
},
{
:prom_ex
,
"beam.json"
},
{
:prom_ex
,
"phoenix.json"
},
{
:prom_ex
,
"ecto.json"
},
{
:prom_ex
,
"oban.json"
}
# {:prom_ex, "phoenix_live_view.json"},
# {:prom_ex, "absinthe.json"},
# {:prom_ex, "broadway.json"},
# Add your dashboard definitions here with the format: {:otp_app, "path_in_priv"}
# {:pleroma, "/grafana_dashboards/user_metrics.json"}
]
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Thu, Oct 2, 2:48 AM (23 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
474899
Default Alt Text
prom_ex.ex (1 KB)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment