-
Notifications
You must be signed in to change notification settings - Fork 391
feat(aggregation-mode): add grafana dashboard #2218
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
base: staging
Are you sure you want to change the base?
Conversation
| let prometheus = PrometheusMetricsBuilder::new("api") | ||
| .endpoint("/metrics") | ||
| .const_labels(labels) | ||
| .build() | ||
| .unwrap(); | ||
|
|
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.
this should be created in the GatewayMetrics.
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.
It needs to be created in GatewayServer::start because it's a layer built on top of the Actix server, so it must be instantiated when the server is created.
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.
Fair enough
aggregation_mode/gateway/src/http.rs
Outdated
| state | ||
| .metrics | ||
| .register_db_response_time_post(duration.as_secs_f64()); |
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.
This metrics should have a label to identify the query
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.
Done in 7ee8201
MarcosNicolau
left a comment
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.
Code looks good
Description
Description of the pull request changes and motivation.
How to test
Now you can see the
Aggregation Modedashboard onhttp://localhost:3000/dashboards.Type of change
Please delete options that are not relevant.
Checklist
testnet, everything else tostaging