-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: ksm metrics were getting duplicated in openshift env using in-cluster prometheus #3864
Conversation
/cherry-pick v2.5 |
…uster prometheus (#3864)
/cherry-pick v2.6 |
…uster prometheus (#3864)
…uster prometheus (#3864)
@@ -24,3 +24,6 @@ serviceMonitor: | |||
|
|||
prometheusRule: | |||
enabled: true | |||
|
|||
kubecostMetrics: |
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.
I daresay this should read kubeStateMetrics
, not kubecostMetrics
...
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 should be kubecostMetrics
The helm config is different from the one that is present in opencost
cost-analyzer-helm-chart/cost-analyzer/values.yaml
Lines 554 to 558 in 6c4b54e
kubecostMetrics: | |
# emitPodAnnotations: false | |
# emitNamespaceAnnotations: false | |
# emitKsmV1Metrics: true # emit all KSM metrics in KSM v1. | |
# emitKsmV1MetricsOnly: false # emit only the KSM metrics missing from KSM v2. Advanced users only. |
…-v2.6 Revert "fix: ksm metrics were getting duplicated in openshift env using in-cluster prometheus (cherry-pick #3864)"
…-v2.5 Revert "fix: ksm metrics were getting duplicated in openshift env using in-cluster prometheus (cherry-pick #3864)"
What does this PR change?
Adds default option for disabling emitting ksm metrics when using in-cluster prometheus in an openshift environment.
Does this PR rely on any other PRs?
No
How does this PR impact users? (This is the kind of thing that goes in release notes!)
Users installing kubecost in openshift environment using in-cluster prometheus will now not get degraded warning and will see correct number of CPU in openshift overview page.
Links to Issues or tickets this PR addresses or fixes
opencost/opencost-helm-chart#249
What risks are associated with merging this PR? What is required to fully test this PR?
No
How was this PR tested?
Installed kubecost in openshift environment with in-cluster prometheus. earlier was getting degraded warning after setting:
the warning was gone and nothing else was affected(We were getting correct etls and cost was showing up in UI).
Have you made an update to documentation? If so, please provide the corresponding PR.