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
pkg/manifests: Allow users to configure EnforcedSampleLimit for user #865
pkg/manifests: Allow users to configure EnforcedSampleLimit for user #865
Conversation
lilic
commented
Jul 20, 2020
•
edited
edited
- I added CHANGELOG entry for this change.
This also needs bump of prometheus operator dep, which another PR introduces, hence the failed tests. |
@openshift/openshift-team-monitoring ready for review! I tested this on a cluster and checked the limit was applied to the scrape config, but will be a bit harder to add an e2e test for this as the data ends up in a Secret gzipped. Side note tests passed on first try :O 🎉 |
/hold cancel |
@@ -1441,6 +1441,10 @@ func (f *Factory) PrometheusUserWorkload(grpcTLS *v1.Secret) (*monv1.Prometheus, | |||
p.Spec.RemoteWrite = f.config.UserWorkloadConfiguration.Prometheus.RemoteWrite | |||
} | |||
|
|||
if f.config.UserWorkloadConfiguration.Prometheus.EnforcedSampleLimit != nil { |
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.
This is a new configuration field so we do not want to add this to the old ConfigMap as a way to encourage users to migrate away from the old configmap as it will be deprecated in 4.7.
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.
precisely why having separate structs for configs is a really good idea 👍 💯
very nice!
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brancz, lilic 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 |