-
Notifications
You must be signed in to change notification settings - Fork 162
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 metrics for SCIOND client API #3254
Conversation
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.
Reviewed 3 of 4 files at r1.
Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @lukedirtwalker and @scrye)
go/lib/sciond/sciond.go, line 278 at r1 (raw file):
roundTripper, err := c.ctxAwareConnect(ctx) if err != nil { metrics.SVCInfos.Inc(errorToPrometheusLabel(err))
this is probably at the wrong place. As discussed probably it's better to do it here and before the return with nil error.
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.
Reviewed 1 of 4 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @scrye)
go/lib/sciond/internal/metrics/metrics.go, line 79 at r1 (raw file):
func newPathRequest() Request { return Request{ count: prom.NewCounterVec(Namespace, subsystemPath, "request_total",
should be requests_total
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.
Reviewable status: 2 of 4 files reviewed, 2 unresolved discussions (waiting on @lukedirtwalker)
go/lib/sciond/sciond.go, line 278 at r1 (raw file):
Previously, lukedirtwalker (Lukas Vogel) wrote…
this is probably at the wrong place. As discussed probably it's better to do it here and before the return with nil error.
Done.
go/lib/sciond/internal/metrics/metrics.go, line 79 at r1 (raw file):
Previously, lukedirtwalker (Lukas Vogel) wrote…
should be
requests_total
Done.
``` # HELP lib_sciond_conn_connections_total The amount of SCIOND connection attempts. # TYPE lib_sciond_conn_connections_total counter lib_sciond_conn_connections_total{result="ok_success"} 5 # HELP lib_sciond_path_request_total The amount of Path requests sent. # TYPE lib_sciond_path_request_total counter lib_sciond_path_request_total{result="ok_success"} 4 ``` Metrics for the other client API calls are also included.
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.
Reviewed 2 of 2 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @scrye)
go/lib/sciond/internal/metrics/metrics.go, line 79 at r1 (raw file):
Previously, scrye (Sergiu Costea) wrote…
Done.
Only on one metric? Doesn't it need to be everywhere?
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.
Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @lukedirtwalker)
go/lib/sciond/internal/metrics/metrics.go, line 79 at r1 (raw file):
Previously, lukedirtwalker (Lukas Vogel) wrote…
Only on one metric? Doesn't it need to be everywhere?
Whoops, missed this one. Fixed.
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.
Reviewed 1 of 1 files at r3.
Reviewable status: complete! all files reviewed, all discussions resolved
Added metrics:
Metrics for the other client API calls are also included.
This change is