-
Notifications
You must be signed in to change notification settings - Fork 458
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
Allow disabling the creation of the SM for operator metrics #3509
base: main
Are you sure you want to change the base?
Conversation
iblancasa
commented
Dec 3, 2024
- Resolves: operator doesn't respect manager.serviceMonitor.enabled helm value #3474
Signed-off-by: Israel Blancas <[email protected]>
Signed-off-by: Israel Blancas <[email protected]>
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.
Do we need to worry about people who are already using this feature? Wouldn't starting it as disabled break people who had this from the previous version?
We should label this as a breaking change, but imo disabled is the better default. Most of the time, packaging (usually Helm or kustomize) is going to take care of this. The intended use case here is primarily OpenShift in my view. |
Signed-off-by: Israel Blancas <[email protected]>
Done @swiatekm |
component: operator | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Make ServiceMonitor for operator metrics optional |
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.
note: Make ServiceMonitor for operator metrics optional | |
note: Make ServiceMonitor for operator metrics optional and disable it by default |
Add create-sm-operator-metrics flag to create a ServiceMonitor for the operator metrics. | ||
This is disabled by default to avoid breaking changes. |
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.
Add create-sm-operator-metrics flag to create a ServiceMonitor for the operator metrics. | |
This is disabled by default to avoid breaking changes. | |
Add `--create-sm-operator-metrics` flag to create a ServiceMonitor for the operator metrics. | |
This is disabled by default, which is a breaking change, because it was enabled by default in 0.113.0 and 0.114.0. |
@@ -424,7 +427,7 @@ func main() { | |||
os.Exit(1) | |||
} | |||
|
|||
if cfg.PrometheusCRAvailability() == prometheus.Available { | |||
if cfg.PrometheusCRAvailability() == prometheus.Available && createSMOperatorMetrics { |
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.
Can we add a comment here? Maybe just linking the pr?