-
Notifications
You must be signed in to change notification settings - Fork 5
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(station): serve metrics as properly certified HTTP asset #341
base: main
Are you sure you want to change the base?
Conversation
with_metrics_registry(SERVICE_NAME, |registry| { | ||
registry | ||
.gauge_mut( | ||
"metrics_timestamp", |
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.
Alternatively the metrics registry could be adapted to use the prometheus format which optionally can include timestamp per each metric (check here)
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 don't see how this can be done with the Rust prometheus crate.
This PR serves station and control panel metrics as properly certified HTTP assets. The metrics include the timestamp at which they were exported. The metrics are refreshed and certified every time the metrics change, but they are not refreshed in a query call if only the canister cycles balance changes.
This PR also bumps dfinity/response-verification to
eefc99e2a0041ae46873864e6e2f7aa8506a361f
.