-
Notifications
You must be signed in to change notification settings - Fork 297
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 GCE Request Count Metric #2150
Add GCE Request Count Metric #2150
Conversation
/hold a larger cleanup of the metrics is needed before this can go in |
8f070cd
to
ba3e25f
Compare
This is based on #2153 . I will rebase and remove hold once that is merged |
df5e048
to
6440f54
Compare
#2153 has merged, so removing hold |
pkg/neg/metrics/metrics.go
Outdated
func PublishGCERequestCountMetrics(start time.Time, requestType string, err error) { | ||
result := getResult(err) | ||
GCERequestLatency.WithLabelValues(requestType, result).Observe(time.Since(start).Seconds()) | ||
GCERequestCount.WithLabelValues(requestType, getResult(err)).Inc() |
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.
nit: Possible replacement: getResult(err) -> result
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.
Yes, thanks for catching that!
6440f54
to
0a680ea
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gauravkghildiyal, swetharepakula The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Add GCE Request Count Metric that measures the number of requests the NEG Controller sends to the NEG API
/assign @gauravkghildiyal