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

Monitoring Pipeline Metrics HPA API #118

Closed
2 of 23 tasks
DirectXMan12 opened this issue Oct 7, 2016 · 15 comments
Closed
2 of 23 tasks

Monitoring Pipeline Metrics HPA API #118

DirectXMan12 opened this issue Oct 7, 2016 · 15 comments
Assignees
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. sig/autoscaling Categorizes an issue or PR as relevant to SIG Autoscaling. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. stage/beta Denotes an issue tracking an enhancement targeted for Beta status
Milestone

Comments

@DirectXMan12
Copy link
Contributor

DirectXMan12 commented Oct 7, 2016

Description

The new monitoring vision (https://docs.google.com/document/d/1z7R44MUz_5gRLwsVH0S9rOy8W5naM9XE5NrbeGIqO2k/) proposes several APIs for the HPA to access metrics. The master metrics API, used to access "core" resource metrics, is already implemented, but still needs to be stabilized. The vision also proposes an adapter API that allows the HPA to access arbitrary metrics from the monitoring pipeline.

This feature tracks defining the API(s), producing an initial implementation (most likely on top of Heapster), and making sure that the HPA is set up to consume the API.

Sponsored by SIG Instrumentation (@kubernetes/sig-instrumentation) and SIG Autoscaling (@kubernetes/autoscaling)

Progress Tracker

  • Alpha
  • Beta
    • Testing is sufficient for beta
    • User docs with tutorials
      • Updated walkthrough / tutorial in the docs repo: kubernetes/kubernetes.github.io
      • cc @kubernetes/docs on docs PR
      • cc @kubernetes/feature-reviewers on this issue to get approval before checking this off
    • Thorough API review
      • cc @kubernetes/api
  • Stable
    • docs/proposals/foo.md moved to docs/design/foo.md
      • cc @kubernetes/feature-reviewers on this issue to get approval before checking this off
    • Soak, load testing
    • detailed user docs and examples
      • cc @kubernetes/docs
      • cc @kubernetes/feature-reviewers on this issue to get approval before checking this off

FEATURE_STATUS: IN_DEVELOPMENT

More advice:

Design

  • Once you get LGTM from a @kubernetes/feature-reviewers member, you can check this checkbox, and the reviewer will apply the "design-complete" label.

Coding

  • Use as many PRs as you need. Write tests in the same or different PRs, as is convenient for you.
  • As each PR is merged, add a comment to this issue referencing the PRs. Code goes in the http://github.com/kubernetes/kubernetes repository,
    and sometimes http://github.com/kubernetes/contrib, or other repos.
  • When you are done with the code, apply the "code-complete" label.
  • When the feature has user docs, please add a comment mentioning @kubernetes/feature-reviewers and they will
    check that the code matches the proposed feature and design, and that everything is done, and that there is adequate
    testing. They won't do detailed code review: that already happened when your PRs were reviewed.
    When that is done, you can check this box and the reviewer will apply the "code-complete" label.

Docs

  • Write user docs and get them merged in.
  • User docs go into http://github.com/kubernetes/kubernetes.github.io.
  • When the feature has user docs, please add a comment mentioning @kubernetes/docs.
  • When you get LGTM, you can check this checkbox, and the reviewer will apply the "docs-complete" label.
@DirectXMan12
Copy link
Contributor Author

cc @piosz @fgrzadkowski @derekwaynecarr @kubernetes/autoscaling @kubernetes/sig-instrumentation

@idvoretskyi idvoretskyi modified the milestone: v1.5 Oct 11, 2016
@idvoretskyi idvoretskyi added the sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. label Oct 13, 2016
@idvoretskyi idvoretskyi added the sig/autoscaling Categorizes an issue or PR as relevant to SIG Autoscaling. label Oct 13, 2016
@idvoretskyi
Copy link
Member

@DirectXMan12 any updates on this issue? Can you provide the actual status of it and update the checkboxes above?

@DirectXMan12
Copy link
Contributor Author

The proposal is posted, but has not been approved yet. We only recently reached general consensus about the design. Still finalizing the exact semantics. It should be removed from the 1.5 milestone, since no code will have gone into 1.5

@idvoretskyi idvoretskyi modified the milestones: next-milestone, v1.5 Nov 16, 2016
@idvoretskyi
Copy link
Member

@DirectXMan12 thank you for clarifying.

@idvoretskyi idvoretskyi modified the milestones: v1.6, next-milestone Jan 30, 2017
@idvoretskyi idvoretskyi added the stage/alpha Denotes an issue tracking an enhancement targeted for Alpha status label Jan 30, 2017
@apsinha
Copy link

apsinha commented Feb 23, 2017

@DirectXMan12 there maybe users who are currently using the previous alpha implementation of custom metrics. Can we prepare user documentation for such users ahead of the release? We would like to be careful not to break pod auto-scaling for any users.

@idvoretskyi
Copy link
Member

@DirectXMan12 please, provide us with the release notes and documentation PR (or links) at https://docs.google.com/spreadsheets/d/1nspIeRVNjAQHRslHQD1-6gPv99OcYZLMezrBe3Pfhhg/edit#gid=0

@DirectXMan12
Copy link
Contributor Author

DirectXMan12 commented Mar 6, 2017

@DirectXMan12 please, provide us with the release notes and documentation PR (or links)

done :-)

k8s-github-robot pushed a commit to kubernetes/kubernetes that referenced this issue Sep 3, 2017
…2beta1

Automatic merge from submit-queue (batch tested with PRs 51335, 51364, 51130, 48075, 50920)

Graduate custom metrics API to v1beta1

This graduates custom-metrics.metrics.k8s.io/v1alpha1 to custom-metrics.metrics.k8s.io/v1beta1.  The move is more-or-less just a straightforward rename.

Part of kubernetes/enhancements#117 and kubernetes/enhancements#118

```release-note
the custom metrics API (custom-metrics.metrics.k8s.io) has moved from v1alpha1 to v1beta1
```
k8s-github-robot pushed a commit to kubernetes/kubernetes that referenced this issue Sep 6, 2017
Automatic merge from submit-queue (batch tested with PRs 51603, 51653)

Graduate metrics/v1alpha1 to v1beta1

This introduces v1beta1 of the resource metrics API, previously in alpha.
The v1alpha1 version remains for compatibility with the Heapster legacy version
of the resource metrics API, which is compatible with the v1alpha1 version.  It also
renames the v1beta1 version to `resource-metrics.metrics.k8s.io`.

The HPA controller's REST clients (but not the legacy client) have been migrated as well.

Part of kubernetes/enhancements#118.

```release-note
Migrate the metrics/v1alpha1 API to metrics/v1beta1.  The HorizontalPodAutoscaler
controller REST client now uses that version.  For v1beta1, the API is now known as
resource-metrics.metrics.k8s.io.
```
@DirectXMan12
Copy link
Contributor Author

@idvoretskyi this is beta in 1.8

@luxas luxas added stage/beta Denotes an issue tracking an enhancement targeted for Beta status and removed stage/alpha Denotes an issue tracking an enhancement targeted for Alpha status labels Sep 14, 2017
@luxas luxas modified the milestones: v1.6, 1.8 Sep 14, 2017
sttts pushed a commit to sttts/code-generator that referenced this issue Sep 22, 2017
…2beta1

Automatic merge from submit-queue (batch tested with PRs 51335, 51364, 51130, 48075, 50920)

Graduate custom metrics API to v1beta1

This graduates custom-metrics.metrics.k8s.io/v1alpha1 to custom-metrics.metrics.k8s.io/v1beta1.  The move is more-or-less just a straightforward rename.

Part of kubernetes/enhancements#117 and kubernetes/enhancements#118

```release-note
the custom metrics API (custom-metrics.metrics.k8s.io) has moved from v1alpha1 to v1beta1
```

Kubernetes-commit: d375e1595f74b2cd80a700809a9e4ac0fd5335db
sttts pushed a commit to sttts/code-generator that referenced this issue Sep 22, 2017
Automatic merge from submit-queue (batch tested with PRs 51603, 51653)

Graduate metrics/v1alpha1 to v1beta1

This introduces v1beta1 of the resource metrics API, previously in alpha.
The v1alpha1 version remains for compatibility with the Heapster legacy version
of the resource metrics API, which is compatible with the v1alpha1 version.  It also
renames the v1beta1 version to `resource-metrics.metrics.k8s.io`.

The HPA controller's REST clients (but not the legacy client) have been migrated as well.

Part of kubernetes/enhancements#118.

```release-note
Migrate the metrics/v1alpha1 API to metrics/v1beta1.  The HorizontalPodAutoscaler
controller REST client now uses that version.  For v1beta1, the API is now known as
resource-metrics.metrics.k8s.io.
```

Kubernetes-commit: 0076f02df0d6979fe89911d1070e7cfc02ba6b0c
@apsinha
Copy link

apsinha commented Sep 25, 2017

@DirectXMan12 did we move to beta with any changes? I could not find any documentation of any changes, just wanted to confirm...

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 6, 2018
@DirectXMan12
Copy link
Contributor Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 10, 2018
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 10, 2018
@justaugustus
Copy link
Member

@DirectXMan12
Any plans for this in 1.11?

If so, can you please ensure the feature is up-to-date with the appropriate:

  • Description
  • Milestone
  • Assignee(s)
  • Labels:
    • stage/{alpha,beta,stable}
    • sig/*
    • kind/feature

cc @idvoretskyi

@DirectXMan12
Copy link
Contributor Author

I'm going to close this feature issue, and we'll roll it into the HPA one. The features are so tightly entwined that it makes sense to track together.

@justaugustus
Copy link
Member

Thanks for consolidating, Solly!

ingvagabund pushed a commit to ingvagabund/enhancements that referenced this issue Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. sig/autoscaling Categorizes an issue or PR as relevant to SIG Autoscaling. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. stage/beta Denotes an issue tracking an enhancement targeted for Beta status
Projects
None yet
Development

No branches or pull requests

7 participants