1 defmodule Pleroma.PromEx do
2 use PromEx, otp_app: :pleroma
9 # PromEx built in plugins
12 {Plugins.Phoenix, router: Pleroma.Web.Router, endpoint: Pleroma.Web.Endpoint},
15 # Plugins.PhoenixLiveView,
19 # Add your own PromEx metrics plugins
20 # Pleroma.Users.PromExPlugin
25 def dashboard_assigns do
27 datasource_id: Pleroma.Config.get([Pleroma.PromEx, :datasource]),
28 default_selected_interval: "30s"
35 # PromEx built in Grafana dashboards
36 {:prom_ex, "application.json"},
37 {:prom_ex, "beam.json"},
38 {:prom_ex, "phoenix.json"},
39 {:prom_ex, "ecto.json"},
40 {:prom_ex, "oban.json"}
41 # {:prom_ex, "phoenix_live_view.json"},
42 # {:prom_ex, "absinthe.json"},
43 # {:prom_ex, "broadway.json"},
45 # Add your dashboard definitions here with the format: {:otp_app, "path_in_priv"}
46 # {:pleroma, "/grafana_dashboards/user_metrics.json"}