-
Notifications
You must be signed in to change notification settings - Fork 54
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
refactor: metrics server. Simplify app.nim module #2650
Conversation
You can find the image built from this PR at
Built from 5929a3d |
You can find the image built from this PR at
Built from 5929a3d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
return | ||
err("Starting metrics server failed. Continuing in current state:" & $error) | ||
|
||
if conf.metricsLogging: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just out of curiosity, is there a mean having metrics server running without metrics logging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you can scrape the metrics for monitoring purposes without it polluting the logs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question @NagyZoltanPeter !
Yes, that could happen indeed. The metrics server is just an http
server that delivers current node state, and this can run separately. The log-metrics, is some kind of redundant metrics information that we print regularly in logs. Both are similar but can run separately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazingg, thank you!
Description
Simplify
app.nim
and move the "metrics factory" procs to an already existingwaku_metrics
module