remove apiserver_admission_step_admission_duration_seconds_summary me… #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
The
apiserver_admission_step_admission_duration_seconds_summary
was getting included in our regex. We only intended to publishThe
apiserver_admission_step_admission_duration_seconds, which is made up of prometheus (submetrics? idk what to call them),
Theapiserver_admission_step_admission_duration_seconds_[count/sum/bucket]
, because this is a prometheus histogram. We need to allow list the component bits but exclude the summary metric itselfI also decided to prefix our regex with a carrot as a performance optimization. it is unnecessary for the entire metric name to be scanned to determine if it matches, with the carrot it will be able to determine just from the first couple characters if it is a match or not.
An alternative implementation would be to replace all the ".*"s, which are super convenient, with very explicit matchers for the histogram. Something like this:
LMK what you think about that
Link to tracking Issue:
Testing: Tested on my cluster
control plane metrics are still flowing:
no summary metric:
but the non-summary one is still flowing
Documentation: N/A, the removed metric was unintended so it was never documented as a supported metric