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

WIP: Update metrics #666

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft

WIP: Update metrics #666

wants to merge 14 commits into from

Conversation

ScottyPoi
Copy link
Collaborator

@ScottyPoi ScottyPoi commented Nov 1, 2024

Refactor of Prometheus metrics in ultralight

  1. Helper functions to create metrics
    • interface MetricParam
      • parameters for metric
        • metric type
        • name
        • help (description)
    • createMetric
      • helper function to create metric
    • createMetrics
      • helper function to generate list of metrics
  2. Dynamic metrics setup for individual networks
    • setupMetrics(networks)
      • added networks: NetworkId[] parameter to setupMetrics
      • method will dynamically create metrics for each active network
  3. Revised list of metrics
    • peers
    • dbSize
    • TODO...(rest of metrics)

@ScottyPoi ScottyPoi added the Draft Still in draft form label Nov 1, 2024
@ScottyPoi ScottyPoi marked this pull request as draft November 1, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Draft Still in draft form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants