stacks-network / stacks-core

The Stacks blockchain implementation
https://docs.stacks.co
GNU General Public License v3.0
3k stars 659 forks source link

Block Fullness Prometheus Metrics for Miner #3263

Open gregorycoppola opened 1 year ago

gregorycoppola commented 1 year ago

Is your feature request related to a problem? Please describe. Right now, we depict the block fullness of the last "accepted block" produced by the network. https://github.com/stacks-network/stacks-blockchain/blob/08c163bab484954b3934515ee7bf60848f52ed4a/src/monitoring/prometheus.rs#L94

However, a miner does not have depicted their own mining block fullness.

We should also capture the block fullness of the miner. This way: 1) L1 miners can monitor their mining performance 2) L2 miners (who should also use prometheus/grafana) can monitor their mining performance 3) people working on optimizing the miner can run experiments that compare their performance to the baseline of what the network did

Describe the solution you'd like Add analogous prometheus endpoints that we have for append block for the miner as well.

jcnelson commented 1 year ago

Temporarily reassigning this to @pavitthrap so it has an owner. Please feel free to close or reassign :)