Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telemetry & Metrics #204

Merged
merged 27 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e8cceef
chore(sidecar): builder-api logs review
thedevbirb Aug 21, 2024
a4dda2e
chore(sidecar): fallback block builder logs review
thedevbirb Aug 21, 2024
8b7a716
chore(sidecar): remove unused wrapper methods from rpc client
thedevbirb Aug 21, 2024
fe36bce
feat(sidecar): telemetry opts
thedevbirb Aug 21, 2024
3a10fb1
feat(sidecar): telemetry stub
thedevbirb Aug 21, 2024
9208a70
chore(sidecar): clippy
thedevbirb Aug 21, 2024
c511ac9
chore(scripts): change branch for starting devnet
thedevbirb Aug 22, 2024
2eb74fb
chore(sidecar): commitments server refactor
thedevbirb Aug 28, 2024
a3aedf4
chore(sidecar): imports
thedevbirb Aug 28, 2024
7df3100
feat(sidecar): metrics middleware for commitments api
thedevbirb Aug 28, 2024
57fc121
feat(sidecar): metrics on blocks proposed, commitments received
thedevbirb Aug 28, 2024
c74e7f0
fix(sidecar): actually add the status endpoint to the router
thedevbirb Aug 28, 2024
ba06df1
chore(sidecar): grafana from justfile
thedevbirb Aug 29, 2024
1c7dea0
feat(sidecar): more metrics
thedevbirb Aug 29, 2024
42bd64e
chore(devnet): start prometheus and grafana in config
thedevbirb Aug 29, 2024
ccc0d09
feat(sidecar): infra folder with grafana-prometheus docker setup
thedevbirb Aug 29, 2024
3f823d9
chore(sidecar): use metrics flag
thedevbirb Aug 29, 2024
a801c22
chore: unused variables
thedevbirb Aug 29, 2024
83bf780
fix(sidecar): enable metrics logic
thedevbirb Aug 29, 2024
f04db7e
fix: outdated env name
thedevbirb Aug 29, 2024
f46e580
chore(sidecar): updated README
thedevbirb Aug 29, 2024
9676274
chore(sidecar): --metrics -> --disable-metrics
thedevbirb Sep 2, 2024
fa1ec59
feat(sidecar): ApiMetrics stub
thedevbirb Sep 2, 2024
9452743
refactor(sidecar): with ApiMetrics struct
thedevbirb Sep 2, 2024
702ba94
fix(sidecar): reverse if condition
thedevbirb Sep 2, 2024
f423518
chore: pub
thedevbirb Sep 2, 2024
b35afa6
refactor(sidecar): metrics internal
thedevbirb Sep 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ dora:
xdg-open "$url"; \
fi

# show the grafana dashboard in the browser. NOTE: works only for Linux and MacOS at the moment
grafana:
@url=$(just inspect | grep 'grafana\s*http' | awk -F'-> ' '{print $2}' | awk '{print $1}') && \
if [ "$(uname)" = "Darwin" ]; then \
open "$url"; \
else \
xdg-open "$url"; \
fi

# manually send a preconfirmation to the bolt devnet
send-preconf count='1':
cd bolt-kurtosis-client && RUST_LOG=info cargo run -- \
Expand Down
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@

<!-- vim-markdown-toc Marked -->

- [How it works](#how-it-works)
- [Scope of this repository](#scope-of-this-repository)
- [Devnet and demo app](#devnet-and-demo-app)
- [Requirements and setup](#requirements-and-setup)
- [Running the devnet and demo](#running-the-devnet-and-demo)
- [Stopping the devnet and demo](#stopping-the-devnet-and-demo)
* [How it works](#how-it-works)
* [Scope of this repository](#scope-of-this-repository)
* [Devnet and demo app](#devnet-and-demo-app)
* [Requirements and setup](#requirements-and-setup)
* [Running the devnet and demo](#running-the-devnet-and-demo)
* [Stopping the devnet and demo](#stopping-the-devnet-and-demo)
* [Telemetry & Metrics](#telemetry-&-metrics)
* [License](#license)

<!-- vim-markdown-toc -->

Expand Down Expand Up @@ -184,5 +186,13 @@ just clean
[fb-builder]: https://github.com/flashbots/builder
[kurtosis]: https://www.kurtosis.com/

## Telemetry & Metrics

The Bolt sidecar offers an optional set of metrics that can be scraped by a Prometheus server, and shown in Grafana dashboards.
They show various informations such as the number of constraints received, the number of blocks proposed, etc.

These metrics are enabled by default but can be disabled by setting running the sidecar with the `--metrics` flag set to `false`.

## License

MIT. Forked repositories have their own licenses.
Loading
Loading