Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add prom metrics for stacks block count at previous burn block #2200

Merged
merged 7 commits into from
Jan 17, 2025

Conversation

rafaelcr
Copy link
Collaborator

@rafaelcr rafaelcr commented Jan 16, 2025

Observe the following metric:

  • stacks_blocks_in_previous_burn_block: Number of Stacks blocks produced in previous Bitcoin block

This will help us create alerts for when a Bitcoin block gap happens or blocks stop being produced. We also update the chain tip burn_block_height with each new burn block event.

Copy link

github-actions bot commented Jan 16, 2025

Vercel deployment URL: https://stacks-blockchain-14ww1l0rm-hirosystems.vercel.app 🚀

@rafaelcr rafaelcr linked an issue Jan 16, 2025 that may be closed by this pull request
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/datastore/pg-store.ts 0.00% 3 Missing ⚠️
src/event-stream/event-server.ts 57.14% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@rafaelcr rafaelcr changed the title feat: add prom metrics for current and previous tenure block counts feat: add prom metrics for stacks block count at previous burn block Jan 16, 2025
Copy link
Member

@CharlieC3 CharlieC3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go once tests pass! Thank you!

Copy link
Member

@zone117x zone117x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rafaelcr rafaelcr merged commit 26c53dc into develop Jan 17, 2025
27 checks passed
@rafaelcr rafaelcr deleted the metrics/tenure branch January 17, 2025 18:44
blockstack-devops pushed a commit that referenced this pull request Jan 20, 2025
## [8.5.0](v8.4.0...v8.5.0) (2025-01-20)

### Features

* add prom metrics for stacks block count at previous burn block ([#2200](#2200)) ([26c53dc](26c53dc))
@blockstack-devops
Copy link

🎉 This PR is included in version 8.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create new prom metric for stx blocks in last btc block
4 participants