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(metrics): add metrics for last event receipt timestamps #2223

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

rafaelcr
Copy link
Collaborator

Adds prometheus metrics that show the timestamps of last Stacks node events received, split by event type

# HELP stacks_last_event_timestamps Last Stacks node events received timestamp
# TYPE stacks_last_event_timestamps gauge
stacks_last_event_timestamps{event="/new_block"} 1740074547059
stacks_last_event_timestamps{event="/new_burn_block"} 1740074547032

Copy link

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

Copy link

@bgridley bgridley left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

codecov bot commented Feb 20, 2025

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

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

📢 Thoughts on this report? Let us know!

@rafaelcr rafaelcr merged commit 9ce9a33 into develop Feb 20, 2025
28 checks passed
@rafaelcr rafaelcr deleted the feat/event-times branch February 20, 2025 19:58
blockstack-devops pushed a commit that referenced this pull request Feb 20, 2025
## [8.7.0](v8.6.0...v8.7.0) (2025-02-20)

### Features

* **metrics:** add metrics for last event receipt timestamps ([#2223](#2223)) ([9ce9a33](9ce9a33))
* show pending inbound and outbound stx balances ([#2208](#2208)) ([5330c07](5330c07))
@blockstack-devops
Copy link

🎉 This PR is included in version 8.7.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.

3 participants