Zebra/zebra-consensus/src
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
..
block Handle zero transaction expirations (#2782) 2021-09-22 13:44:52 +10:00
chain Return a transaction verifier from `zebra_consensus::init` (#2665) 2021-08-25 15:07:26 +00:00
checkpoint Add `zebra_state::init_test` helper function for tests (#2539) 2021-07-28 20:55:01 -03:00
parameters Replace smart quotes with ascii quotes 2021-03-15 03:18:10 -04:00
primitives Fix or disable recent nightly clippy lints (#2817) 2021-10-01 15:26:06 +00:00
transaction Update shared NU5 dependencies, set the NU5 testnet activation network upgrade parameters (#2825) 2021-10-06 11:08:41 +10:00
block.rs Make block metrics more accurate (#2835) 2021-10-07 13:42:38 +00:00
chain.rs Return a transaction verifier from `zebra_consensus::init` (#2665) 2021-08-25 15:07:26 +00:00
checkpoint.rs Security: Replace queued checkpoint blocks with duplicate hashes (#2697) 2021-08-31 13:50:47 -03:00
config.rs Allow deliberate instances of the clippy::derivable_impls lint (#2788) 2021-09-22 10:43:27 -03:00
error.rs Remove unused mempool errors (#2831) 2021-10-07 11:20:38 +10:00
lib.rs Add transaction downloader and verifier (#2679) 2021-09-02 00:06:20 +00:00
parameters.rs move genesis parameters to zebra-chain (#1151) 2020-10-12 14:08:23 -07:00
primitives.rs Merge pull request #2318 from ZcashFoundation/redpallas-verifier 2021-07-02 02:50:23 -04:00
script.rs Add an OrderedUtxo type for transparent spend validation (#2502) 2021-07-19 10:52:32 -03:00
transaction.rs Update shared NU5 dependencies, set the NU5 testnet activation network upgrade parameters (#2825) 2021-10-06 11:08:41 +10:00