Skip to content

Commit

Permalink
feat: add beam-dashboards integration (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand authored Mar 21, 2024
1 parent 8c58b17 commit 3bf9862
Show file tree
Hide file tree
Showing 8 changed files with 4,245 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/beacon_api/endpoint.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ defmodule BeaconApi.Endpoint do
json_decoder: Phoenix.json_library()
)

plug(BeaconApi.MetricsExporter)
plug(BeaconApi.Router)
plug(Sentry.PlugContext)
end
4 changes: 4 additions & 0 deletions lib/beacon_api/metrics_exporter.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
defmodule BeaconApi.MetricsExporter do
@moduledoc false
use Prometheus.PlugExporter
end
1 change: 1 addition & 0 deletions lib/lambda_ethereum_consensus/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ defmodule LambdaEthereumConsensus.Application do

@impl true
def start(_type, _args) do
BeaconApi.MetricsExporter.setup()
# Configure sentry logger handler
Logger.add_handlers(:lambda_ethereum_consensus)
mode = get_operation_mode()
Expand Down
Loading

0 comments on commit 3bf9862

Please sign in to comment.