metrics service: allow only histogram summaries#25812
metrics service: allow only histogram summaries#25812jmarantz merged 17 commits intoenvoyproxy:mainfrom
Conversation
|
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
8129c15 to
221dbd7
Compare
|
CC @envoyproxy/runtime-guard-changes: FYI only for changes made to |
221dbd7 to
971c188
Compare
jmarantz
left a comment
There was a problem hiding this comment.
should we have some tests for this new mode?
yes! on it |
55600a4 to
c123e6e
Compare
|
@jmarantz pushed a new implementation using an enum to allow specifying which metrics you want emitted, also added tests for this. |
965a75f to
bd75374
Compare
|
/retest |
|
Retrying Azure Pipelines: |
mattklein123
left a comment
There was a problem hiding this comment.
API LGTM. Please add a release note. I will defer to @jmarantz for code review. Thank you!
Signed-off-by: Sebastian Schepens <sebastian.schepens@mercadolibre.com>
|
added changelog and merged main |
Signed-off-by: Sebastian Schepens <sebastian.schepens@mercadolibre.com>
jmarantz
left a comment
There was a problem hiding this comment.
I think you need to merge main again to get rid of the spurious arm64 CI failure, which was a flake I think.
|
@sschepens you might be interested in this related issue: #11259 I have a skeletal draft PR #26472 which exposes raw histogram bins as an admin endpoint via json. It might be interesting to also access those via metrics service API, which would add a new enum choice to what you have here. |
|
/wait (for main merge) |
…ow-only-histogram-summaries Signed-off-by: Sebastian Schepens <sebastian.schepens@mercadolibre.com>
|
/retest |
|
Retrying Azure Pipelines: |
I think what was requested was for me to review.
Commit Message: Allow only histogram summaries in metric service Additional Description: Histogram metrics by default send two metrics Summary (containing quantiles) and Histogram (containing all the buckets), this makes payloads extremely large when handling lots of stats. In some cases, only having the summary is enough, since we can get sum, count, and percentiles. Furthermore, it probably only makes sense to send one of both, if I were to need buckets, then Summary is probably useless. Risk Level: low, off by default Testing: Docs Changes: Release Notes: Platform Specific Features: Signed-off-by: Sebastian Schepens <sebastian.schepens@mercadolibre.com> Signed-off-by: River Phillips <riverphillips1@gmail.com>
Commit Message: Add support for prometheus summary metrics on the admin endpoint Additional Description: Adds support emitting prometheus "summary" metrics for the internal histogram quantiles by supplying a query parameter. Multiple modes are supported, as in #25812, and can be either histogram, summary, or histogram,summary. Risk Level: Low, no changes to existing default behavior Testing: Added unit tests for histogram, summary, and summary+histogram emission Docs Changes: Added documentation to the admin home page, and to the published admin docs around an optional query parameter. Release Notes: Added a note in the small_feature section. Fixes #30471 Signed-off-by: Andy Bradshaw <abradshaw@palantir.com>
Commit Message: Add support for prometheus summary metrics on the admin endpoint Additional Description: Adds support emitting prometheus "summary" metrics for the internal histogram quantiles by supplying a query parameter. Multiple modes are supported, as in envoyproxy#25812, and can be either histogram, summary, or histogram,summary. Risk Level: Low, no changes to existing default behavior Testing: Added unit tests for histogram, summary, and summary+histogram emission Docs Changes: Added documentation to the admin home page, and to the published admin docs around an optional query parameter. Release Notes: Added a note in the small_feature section. Fixes envoyproxy#30471 Signed-off-by: Andy Bradshaw <abradshaw@palantir.com>
Commit Message: Allow only histogram summaries in metric service
Additional Description: Histogram metrics by default send two metrics Summary (containing quantiles) and Histogram (containing all the buckets), this makes payloads extremely large when handling lots of stats. In some cases, only having the summary is enough, since we can get sum, count, and percentiles. Furthermore, it probably only makes sense to send one of both, if I were to need buckets, then Summary is probably useless.
Risk Level: low, off by default
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]