kube-state-metrics icon indicating copy to clipboard operation
kube-state-metrics copied to clipboard

Deprecate VPA

Open rexagod opened this issue 3 years ago • 1 comments

  • [x] Deprecate VPA metrics.
  • [x] Inform users about the deprecation (print a warning to stdout).
  • [x] Document an alternative approach using the CRD capabilities we have now.

Signed-off-by: Pranshu Srivastava [email protected]

How does this change affect the cardinality of KSM: No change (VPA metrics will be removed in v2.8.0).

Which issue(s) this PR fixes: Partially targets #1718.

rexagod avatar Sep 15 '22 06:09 rexagod

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fpetkovski, rexagod

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 /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Sep 23 '22 10:09 k8s-ci-robot

New changes are detected. LGTM label has been removed.

k8s-ci-robot avatar Sep 26 '22 10:09 k8s-ci-robot

The unit tests are failing, you need to the update the test metadata to include the deprecation notice: https://github.com/kubernetes/kube-state-metrics/blob/master/internal/store/verticalpodautoscaler_test.go#L33-L40

dgrisonnet avatar Oct 14 '22 10:10 dgrisonnet

Moved to v3, ready for review.

rexagod avatar Nov 06 '22 22:11 rexagod

cc @dgrisonnet @mrueg @logicalhan

rexagod avatar Nov 08 '22 23:11 rexagod

I am still very much against cutting a new major version of ksm just for deprecating VPA metrics. This is not an overhaul of the codebase, we are just deprecating some metrics and replacing them with new ones. See it as a renaming of metrics rather than a complete removal.

Also, it is worth noting that all the VPA metrics are experimental so although they have been in the codebase for a while, users shouldn't expect them to never change.

Holding until we've reached a consensus. /hold

dgrisonnet avatar Nov 09 '22 06:11 dgrisonnet

I am still very much against cutting a new major version of ksm just for deprecating VPA metrics. This is not an overhaul of the codebase, we are just deprecating some metrics and replacing them with new ones. See it as a renaming of metrics rather than a complete removal.

Also, it is worth noting that all the VPA metrics are experimental so although they have been in the codebase for a while, users shouldn't expect them to never change.

Holding until we've reached a consensus. /hold

Yeah, cutting a release for deleting experimental metrics seems a bit much to me too.

logicalhan avatar Nov 09 '22 17:11 logicalhan

Reverted to v2.9.0 (https://github.com/kubernetes/kube-state-metrics/pull/1835#discussion_r978888062).

rexagod avatar Nov 09 '22 20:11 rexagod

/approve

mrueg avatar Nov 10 '22 16:11 mrueg

@mrueg Can you please /lgtm (if all looks good here)?

rexagod avatar Nov 11 '22 08:11 rexagod

/lgtm /hold cancel Proceeding here, thanks for your contribution @rexagod!

mrueg avatar Nov 14 '22 18:11 mrueg

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fpetkovski, mrueg, rexagod

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:
  • ~~OWNERS~~ [fpetkovski,mrueg]

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Nov 14 '22 18:11 k8s-ci-robot

So what are the alternatives now to get those metrics ? Sry starting with vpa just to have free recommendations instead of paying 15k to some random saas.

hajdukda avatar Aug 09 '23 20:08 hajdukda

There is a doc explaining how to get them back in https://github.com/kubernetes/kube-state-metrics/blob/main/docs/customresourcestate-metrics.md#verticalpodautoscaler

dgrisonnet avatar Aug 10 '23 08:08 dgrisonnet