Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

iblancasa
Copy link
Contributor

@iblancasa iblancasa requested a review from a team as a code owner December 3, 2024 13:34
Signed-off-by: Israel Blancas <[email protected]>
Copy link
Contributor

@jaronoff97 jaronoff97 left a 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?

@swiatekm
Copy link
Contributor

swiatekm commented Dec 3, 2024

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]>
@iblancasa
Copy link
Contributor Author

Done @swiatekm

@jaronoff97 jaronoff97 requested a review from swiatekm December 3, 2024 17:57
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
note: Make ServiceMonitor for operator metrics optional
note: Make ServiceMonitor for operator metrics optional and disable it by default

Comment on lines +17 to +18
Add create-sm-operator-metrics flag to create a ServiceMonitor for the operator metrics.
This is disabled by default to avoid breaking changes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 {
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

operator doesn't respect manager.serviceMonitor.enabled helm value
4 participants