这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Lazar955
Copy link
Member

@Lazar955 Lazar955 commented Aug 6, 2025

closes #387

Copilot AI review requested due to automatic review settings August 6, 2025 08:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the global running finality provider gauge metric and introduces initialization of per-finality-provider metrics to ensure they are available in Prometheus before any activity occurs.

  • Removes the runningFpGauge metric that tracked the total number of running finality providers
  • Adds an InitializeFpMetrics function to initialize individual finality provider metrics with default values
  • Updates the metrics loop to call the new initialization function

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
metrics/fp_collectors.go Removes global running FP gauge and adds initialization function for per-FP metrics
finality-provider/service/event_loops.go Calls the new metric initialization function in the metrics update loop

@Lazar955 Lazar955 merged commit cd9dca3 into main Aug 6, 2025
31 of 32 checks passed
@Lazar955 Lazar955 deleted the lazar/fp-init-metrics branch August 6, 2025 09:17
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.

Ensure Reliable Initialization of Key Metrics

3 participants