Zebra/zebra-state/src/service
teor f4118dadda
Make block metrics more accurate (#2835)
* Check for state errors before updating metrics

Previously, the metrics would be updated for some rejected blocks.

* Clarify and expand block verification metrics

Rename checkpoint-specific metrics to clarify their purpose.

Add metrics for:
- finalized blocks on disk
- blocks verified using the full block verifier
  (this metric was previously incorrectly called `zcash_chain_verified_block_height`)

* Update dashboard metric names

Also:
- add some extra block height metrics
- fix a dashboard name

* Add exact block heights to Grafana dashboards

* Add a missing comment

* grafana: use 0 decimals for metrics

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>

* grafana: show the entire height instead of abbreviated

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>

* grafana: show the entire height instead of abbreviated

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>

* Fix typo in metric name

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>

* Move height gauges to the state, so they are correct

If we update height gauges in futures, they can execute out of order,
so the metrics can be incorrect.

Instead:
- move the height gauges to the state, and update them based on the best tip
- move the verified block counts to the state
- continue to include all verified blocks on all non-finalized chains
  (not just the best chain)

* Show exact checkpoint heights in the dashboard

Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
2021-10-07 13:42:38 +00:00
..
chain_tip Stop panicking when using sync and async methods on the same ChainTipChange (#2800) 2021-09-28 07:48:19 -03:00
check Add transaction downloader and verifier (#2679) 2021-09-02 00:06:20 +00:00
finalized_state ZIP-221/244 auth data commitment validation in checkpoint verifier (#2633) 2021-08-23 14:17:33 +00:00
non_finalized_state Stop dropping queued block senders without sending a response 2021-10-07 00:12:45 -04:00
arbitrary.rs ZIP-221/244 auth data commitment validation in checkpoint verifier (#2633) 2021-08-23 14:17:33 +00:00
chain_tip.rs Gossip recently verified block hashes to peers (#2729) 2021-10-07 07:46:37 -03:00
check.rs ZIP-221/244 auth data commitment validation in checkpoint verifier (#2633) 2021-08-23 14:17:33 +00:00
finalized_state.rs Make block metrics more accurate (#2835) 2021-10-07 13:42:38 +00:00
non_finalized_state.rs Fix or disable recent nightly clippy lints (#2817) 2021-10-01 15:26:06 +00:00
pending_utxos.rs Add an OrderedUtxo type for transparent spend validation (#2502) 2021-07-19 10:52:32 -03:00
tests.rs Fix an incorrect assertion when the block locator is at the tip (#2789) 2021-09-27 22:43:05 +00:00