prometheus
prometheus copied to clipboard
fix: get block by id directly on promtool analyze
related issue: https://github.com/prometheus/prometheus/issues/10822
Ready for review🙇♂️
@dgl @codesome I forgot to tell you how fix it🙇
- Added
*DBReadOnly.Block(logger log.Logger, blockID string)
to get block by id without getting all blocks. - Use the method when blockID is specified on
promtool analyze
.
We have discussed this pull request during our bug scrub and we believe that it has been implemented in #12031. Please reopen if that is not the case.
Thank you for your contribution.