-
Notifications
You must be signed in to change notification settings - Fork 819
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
Monitoring: fix error on Stackdriver exporter #1479
Monitoring: fix error on Stackdriver exporter #1479
Conversation
Also found some useful examples. First uses new version of |
Build Succeeded 👏 Build Id: 10ea39d5-e1f9-4b29-88b9-eacb388bc306 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
df9fe2b
to
43e81ce
Compare
Build Succeeded 👏 Build Id: cf816f2b-368f-4a67-a262-9f27b5c3e3b8 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
/assign @cyriltovena Can you review? I've no idea what any of this means 😄 |
pkg/metrics/kubernetes_client.go
Outdated
})) | ||
|
||
runtime.Must(view.Register(&view.View{ | ||
Name: "k8s_client_cache_list_items", | ||
Measure: cacheListItemCountStats, | ||
Description: "Count of items in a list from the Kubernetes API.", | ||
Aggregation: view.Distribution(0), | ||
Aggregation: view.Distribution(0.00001), |
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 wonder why past me didn't put any buckets here ?
I think we should have 0,10,50,100,150,250,300.
pkg/metrics/kubernetes_client.go
Outdated
})) | ||
|
||
runtime.Must(view.Register(&view.View{ | ||
Name: "k8s_client_cache_watch_events", | ||
Measure: cacheItemsInWatchesCountStats, | ||
Description: "Number of items in watches on the Kubernetes API.", | ||
Aggregation: view.Distribution(0), | ||
Aggregation: view.Distribution(0.00001), |
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.
Same here. you should use the same kind of buckets. It work for our dashboard to not have bucket cause I do average mostly but if you want 99th % you can't without proper buckets.
Looks good just add bucket I forgot when I created this. |
Zero value cannot be used as the only value for view.Distribution().
43e81ce
to
f592525
Compare
Build Succeeded 👏 Build Id: d4013f1b-826e-4d86-8946-6e5857c86f38 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Build Succeeded 👏 Build Id: a01593b7-c13a-42d8-b033-c2018fb9ca62 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aLekSer, cyriltovena 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 |
Zero value cannot be used as the only value for view.Distribution().
Zero value cannot be used as the only value for view.Distribution().
Closes #1330