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

Add metrics about Vertical Pod Autoscaler recommendations #781

Closed
jessie-JNing opened this issue Jun 5, 2019 · 9 comments · Fixed by #791
Closed

Add metrics about Vertical Pod Autoscaler recommendations #781

jessie-JNing opened this issue Jun 5, 2019 · 9 comments · Fixed by #791
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@jessie-JNing
Copy link

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind feature

What happened:
Vertical Pod Autoscaler is release in Kubernetes, which aims to provides recommendations to set appropriate resource request values for Kubernetes pods.

A number of recommended CPU/memory values are given by VPA, e.g.

containerRecommendations:
  - containerName: web
    lowerBound:
      cpu: 10m
      memory: "272054411"
    target:
      cpu: 11m
      memory: "87381333"
    uncappedTarget:
      cpu: 11m
      memory: "442809964"
    upperBound:
      cpu: 11m
      memory: "482354586"

What you expected to happen:
We would like to have the values(lowerBound, target and etc.) be collected by kube-state-metrics.

So that we can compare the actual CPU/memory cost with the recommended values via DataDog or other monitoring tools.

@tariq1890
Copy link
Contributor

/kind feature

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 5, 2019
@brancz
Copy link
Member

brancz commented Jun 5, 2019

I think the VPA should expose these metrics itself. It's the same take as we have on operators, etc.

@jessie-JNing
Copy link
Author

I think the VPA should expose these metrics itself. It's the same take as we have on operators, etc.

Could you provide a guide/doc on that? Thanks @brancz

@brancz
Copy link
Member

brancz commented Jun 7, 2019

I don't have docs but I can give two examples:

@dturn
Copy link

dturn commented Jun 11, 2019

It turns out @bskiba actually suggested adding the metrics in this project kubernetes/autoscaler#1631 (comment). Can the two of you offer a path forward? We could build our own scraping mechanism, but that doesn't seem like the right path forward ...

@brancz
Copy link
Member

brancz commented Jun 12, 2019

hmm.. maybe VPA is in kind of a unique situation, as it's part of core kubernetes (as in the kubernetes org), but not installed on every cluster. If we mark all metrics of the VPA as experimental, and have it be turned off by default, then I think I would be ok with having it in kube-state-metrics (and only support >=v0.5.0).

@milesbxf
Copy link
Contributor

We're quite keen to have this too, so I'd be happy to have a go at adding it this week. @dturn have you started looking at this at all?

@dturn
Copy link

dturn commented Jun 17, 2019

We're quite keen to have this too, so I'd be happy to have a go at adding it this week. @dturn have you started looking at this at all?

I haven't had a chance to work on this, and probably wont this week either. It would be great if you had time to work on this @milesbxf !

@milesbxf
Copy link
Contributor

@dturn no worries - just wanted to avoid duplicating work. I've had an initial go at this here: #791

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants