-
Notifications
You must be signed in to change notification settings - Fork 373
Add endpoint method and path to metrics name. #2850
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
Add endpoint method and path to metrics name. #2850
Conversation
✅ Deploy Preview for peppy-sprite-186812 canceled.
|
|
It is breaking backwards compatibility - however, do we need it in metrics?
|
1dfdd7d to
580b666
Compare
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.
Great there is a solution to this. See the comments.
580b666 to
e6d3c1b
Compare
|
@JDarDagran I agree that more investment is needed in our metrics, and correlating an API call I would favor first defining a proposal for metrics and their importance, naming strategy (ie: no longer relying on dropwizard auto-generated names), labels, etc. If we were to introduce breaking changes (and I think we have to), we need a precise metric naming strategy and list of metrics that are critical for debugging DB perf issue before moving forward. What about adding the HTTP call as a label? This will at least unblock the PR and not introduce a breaking change and new naming strategy. |
Signed-off-by: Jakub Dardzinski <[email protected]> Add MetricsIntegrationTest. Signed-off-by: Jakub Dardzinski <[email protected]>
7bb7545 to
dfea8a7
Compare
|
Reworked it. Now v2 endpoint |
e5f7a87 to
700f2d8
Compare
afbb231 to
d02d284
Compare
Signed-off-by: Jakub Dardzinski <[email protected]>
d02d284 to
e83e967
Compare
|
I think the metric (below) for our DB calls is a great start! But, what the metric is really trying to do is trace the HTTP call to the DB query (i.e. span). I do find it confusing (as I mentioned before) as these labels are unrelated to the metric itself Given Example Metric: Define Metric: Labels:
|
Rename endpoint name for v2 metrics. Signed-off-by: Jakub Dardzinski <[email protected]>
@wslulciuc I did follow your advice and renamed metric and labels as per your suggestion. If you / any commiter could run CI tests (probably with |
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.
Thanks @JDarDagran for improving our metrics! It's long over due. We'll be investment in this area more and more as we move towards a stable release of Marquez.
* Add endpoint method and path to metrics name. Signed-off-by: Jakub Dardzinski <[email protected]> Add MetricsIntegrationTest. Signed-off-by: Jakub Dardzinski <[email protected]> * Introduce labels to metrics and add them to v2 metrics endpoint. Signed-off-by: Jakub Dardzinski <[email protected]> * Rename metric name and labels. Rename endpoint name for v2 metrics. Signed-off-by: Jakub Dardzinski <[email protected]> --------- Signed-off-by: Jakub Dardzinski <[email protected]> Co-authored-by: Willy Lulciuc <[email protected]>
Problem
Currently, in metrics endpoint there is information gathered that contains SQL Object name + method name. It might be more informative if additional information about endpoints would be added as well.
Solution
Introduce labels (DAO name, DAO method, endpoint method, endpoint path).
Checklist
CHANGELOG.md(Depending on the change, this may not be necessary)..sqldatabase schema migration according to Flyway's naming convention (if relevant)