Skip to content

Conversation

@nugaon
Copy link
Member

@nugaon nugaon commented Aug 25, 2025

Node init related metrics does not show up on /metrics endpoint.

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

@nugaon nugaon marked this pull request as ready for review August 25, 2025 10:20
@nugaon nugaon requested a review from akrem-chabchoub August 27, 2025 15:16
func (m nodeMetrics) RegisterMetrics() {
prometheus.MustRegister(m.WarmupDuration)
prometheus.MustRegister(m.FullSyncDuration)
func Metrics(nodeMetrics nodeMetrics) []prometheus.Collector {
Copy link
Member

Choose a reason for hiding this comment

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

This function does not need to be exported.

Copy link
Member Author

Choose a reason for hiding this comment

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

I renamed to getMetrics because it was in conflict with the package name

@nugaon nugaon requested a review from janos August 28, 2025 10:20
@nugaon nugaon merged commit 29ea2b7 into master Sep 2, 2025
15 checks passed
@nugaon nugaon deleted the fix/register-init-metrics branch September 2, 2025 09:41
@bcsorvasi bcsorvasi added this to the v2.7.0 milestone Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants