-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
81 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
defmodule NervesHub.PromEx do | ||
use PromEx, otp_app: :nerves_hub | ||
|
||
alias PromEx.Plugins | ||
|
||
@impl true | ||
def plugins do | ||
[ | ||
# PromEx built in plugins | ||
Plugins.Application, | ||
Plugins.Beam, | ||
{Plugins.Phoenix, router: NervesHubWeb.Router}, | ||
Plugins.PhoenixLiveView, | ||
Plugins.Ecto, | ||
Plugins.Oban | ||
] | ||
end | ||
|
||
@impl true | ||
def dashboard_assigns do | ||
[ | ||
datasource_id: "prometheus" | ||
] | ||
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, "phoenix_live_view.json"}, | ||
{:prom_ex, "ecto.json"}, | ||
{:prom_ex, "oban.json"} | ||
] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters