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

Conversation

thedevbirb
Copy link
Contributor

@thedevbirb thedevbirb commented Aug 28, 2024

Closes #116.
Introduces telemetry and metrics into the Bolt sidecar, which are enabled using the metrics flag, by spinning up a Prometheus server and basic Grafana dashboard, which are available also for the devnet (see chainbound/ethereum-package#7).

The integration with Promtail and Loki will be addressed in a future PR if needed.

NOTE:

Lastly, most of the code is heavily inspired by the work of @merklefruit and @namn-grg on https://github.com/chainbound/bolt-rpc, so thanks a lot for the guideline!

image

@thedevbirb thedevbirb added C: bolt-sidecar Component: bolt-sidecar A: devnet Area: devnet T: feature Type: Feature labels Aug 28, 2024
@merklefruit
Copy link
Collaborator

can you add some docs related to telemetry in the sidecar's readme?

bolt-sidecar/src/config/mod.rs Outdated Show resolved Hide resolved
bolt-sidecar/src/config/mod.rs Outdated Show resolved Hide resolved
bolt-sidecar/src/state/execution.rs Show resolved Hide resolved
bolt-sidecar/src/telemetry/mod.rs Outdated Show resolved Hide resolved
@thedevbirb thedevbirb marked this pull request as ready for review August 29, 2024 11:43
Copy link
Collaborator

@merklefruit merklefruit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@thedevbirb thedevbirb force-pushed the lore/feat/sidecar/telemetry-metrics branch from bf3335a to f46e580 Compare August 29, 2024 12:05
/// Metrics port
pub metrics_port: u16,
/// Toggle for metrics
pub metrics: bool,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this --disable-metrics instead?

Copy link
Contributor

@namn-grg namn-grg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR! Love it awesome!

@thedevbirb thedevbirb merged commit cedd82f into unstable Sep 2, 2024
2 checks passed
@thedevbirb thedevbirb deleted the lore/feat/sidecar/telemetry-metrics branch September 2, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: devnet Area: devnet C: bolt-sidecar Component: bolt-sidecar T: feature Type: Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sidecar: Telemetry & Metrics
4 participants