Skip to content

Commit 3bf9862

Browse files
authored
feat: add beam-dashboards integration (#902)
1 parent 8c58b17 commit 3bf9862

File tree

8 files changed

+4245
-3
lines changed

8 files changed

+4245
-3
lines changed

lib/beacon_api/endpoint.ex

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ defmodule BeaconApi.Endpoint do
88
json_decoder: Phoenix.json_library()
99
)
1010

11+
plug(BeaconApi.MetricsExporter)
1112
plug(BeaconApi.Router)
1213
plug(Sentry.PlugContext)
1314
end

lib/beacon_api/metrics_exporter.ex

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
defmodule BeaconApi.MetricsExporter do
2+
@moduledoc false
3+
use Prometheus.PlugExporter
4+
end

lib/lambda_ethereum_consensus/application.ex

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ defmodule LambdaEthereumConsensus.Application do
88

99
@impl true
1010
def start(_type, _args) do
11+
BeaconApi.MetricsExporter.setup()
1112
# Configure sentry logger handler
1213
Logger.add_handlers(:lambda_ethereum_consensus)
1314
mode = get_operation_mode()

0 commit comments

Comments
 (0)