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
Reduce granularity of histogram buckets for Go 1.17 collector #974
Conversation
Great job! Only readability nits, otherwise LGTM! Thanks 💪🏽
@@ -37,3 +37,5 @@ var expectedRuntimeMetrics = map[string]string{ | |||
"/sched/goroutines:goroutines": "go_sched_goroutines_goroutines", | |||
"/sched/latencies:seconds": "go_sched_latencies_seconds", | |||
} | |||
|
|||
const expectedRuntimeMetricsCardinality = 79 |
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. Thanks @mknyszek for taking care of this.
As @bwplotka, it would be nice add more explanation comments, it'd be easier for us to maintain in the long run.
Also we might consider handling #967 (comment) as well before the next patch release. Not necessarily as part of this PR though.
The Go runtime/metrics package currently exports extremely granular histograms. Exponentially bucket any histogram with unit "seconds" or "bytes" instead to dramatically reduce the number of buckets, and thus the number of metrics. This change also adds a test to check for expected cardinality to prevent cardinality surprises in the future. Signed-off-by: Michael Anthony Knyszek <mknyszek@google.com>
The Go runtime/metrics package currently exports extremely granular histograms. Exponentially bucket any histogram with unit "seconds" or "bytes" instead to dramatically reduce the number of buckets, and thus the number of metrics. This change also adds a test to check for expected cardinality to prevent cardinality surprises in the future. Signed-off-by: Michael Anthony Knyszek <mknyszek@google.com>
The Go runtime/metrics package currently exports extremely granular
histograms. Exponentially bucket any histogram with unit "seconds"
or "bytes" instead to dramatically reduce the number of buckets, and
thus the number of metrics.
This change also adds a test to check for expected cardinality to
prevent cardinality surprises in the future.
Fixes #967
Signed-off-by: Michael Anthony Knyszek mknyszek@google.com