Skip to content

Commit 1d13b98

Browse files
feat(metrics): add value pool, RPC, and peer health metrics (ZcashFoundation#10175)
* feat(metrics): add value pool, RPC, and peer health metrics Add Prometheus metrics for operational visibility: - Value pool metrics: transparent, sprout, sapling, orchard, deferred balances and total chain supply (zebra-state) - RPC metrics middleware: request counts, latencies, active requests, and errors per method (zebra-rpc) - Peer handshake metrics: duration histograms and failure tracking by reason (zebra-network) Also includes: - Grafana dashboards for value pools and RPC monitoring - Prometheus alert rules for critical conditions - Updated CHANGELOG Closes ZcashFoundation#10162, closes ZcashFoundation#10163, closes ZcashFoundation#10164, closes ZcashFoundation#10167 * chore: remove wrongly commited files to `.gitignore` * chore: cargo fmt * chore: clippy fix * docs: fix changelog entries for PR ZcashFoundation#10175 - Remove ZcashFoundation#10174 entries from [Unreleased] (already in 4.0.0) - Remove redundant "Added" prefix from entries - Link to PR ZcashFoundation#10175 instead of issues - Add rpc_metrics module entry to zebra-rpc changelog * Update CHANGELOG.md Co-authored-by: Marek <mail@marek.onl> * Update zebra-rpc/CHANGELOG.md Co-authored-by: Marek <mail@marek.onl> --------- Co-authored-by: Marek <mail@marek.onl>
1 parent 8b670c2 commit 1d13b98

File tree

13 files changed

+1829
-10
lines changed

13 files changed

+1829
-10
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
docs/
2-
!docs/**/*.md
31
# Cargo files
42
/coverage-target/
53
# Legacy Zebra state (alpha versions only)

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ Thank you to everyone who contributed to this release, we couldn't make Zebra wi
5353

5454
### Added
5555

56-
- OpenTelemetry tracing support behind the `opentelemetry` feature flag ([#10174](https://github.com/ZcashFoundation/zebra/pull/10174))
57-
- RPC tracing middleware with `SPAN_KIND_SERVER` spans for Jaeger Service Performance Monitoring ([#10174](https://github.com/ZcashFoundation/zebra/pull/10174))
58-
- Added Docker Compose observability stack with Jaeger, Prometheus, Grafana, and AlertManager for local development and testing
56+
- Value pool metrics exposing transparent, sprout, sapling, orchard, and deferred pool balances plus total chain supply ([#10175](https://github.com/ZcashFoundation/zebra/pull/10175))
57+
- Peer handshake metrics for duration histograms and failure tracking by reason ([#10175](https://github.com/ZcashFoundation/zebra/pull/10175))
58+
- Prometheus alert rules and Grafana dashboards for value pools and RPC monitoring ([#10175](https://github.com/ZcashFoundation/zebra/pull/10175))
5959

6060

6161
## [Zebra 3.1.0](https://github.com/ZcashFoundation/zebra/releases/tag/v3.1.0) - 2025-11-28

Cargo.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7158,6 +7158,7 @@ dependencies = [
71587158
"jsonrpsee",
71597159
"jsonrpsee-proc-macros",
71607160
"jsonrpsee-types",
7161+
"metrics",
71617162
"nix",
71627163
"proptest",
71637164
"prost 0.14.3",

0 commit comments

Comments
 (0)