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

KEP-4785: CRDMetrics Controller #4811

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rexagod
Copy link
Member

@rexagod rexagod commented Aug 27, 2024

  • One-line PR description: This KEP proposes the incorporation of the CRDMetrics controller into the Kubernetes organization, similar to its existing counterpart for native metrics, Kube State Metrics.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. labels Aug 27, 2024
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 27, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rexagod
Once this PR has been reviewed and has the lgtm label, please assign wojtek-t for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 k8s-ci-robot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 27, 2024
@logicalhan logicalhan self-assigned this Aug 29, 2024
@logicalhan logicalhan added the lead-opted-in Denotes that an issue has been opted in to a release label Aug 29, 2024
Resource State API from Kube State Metrics, and replace it by the CRDMetrics
controller which, in addition to its own benefits, would allow Kube State
Metrics to drop all Custom Resource State API-specific behaviors that can crash
Kube State Metrics, directly affecting the availability of native metrics
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

- sig-instrumentation
status: implementable
creation-date: 2024-08-27
reviewers:
Copy link
Member

Choose a reason for hiding this comment

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

let's add @mrueg as well if he has the bandwidth to review

Copy link
Member

Choose a reason for hiding this comment

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

Happy to give my input

Copy link
Member Author

Choose a reason for hiding this comment

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

I honestly don't know how I missed that, let me fix this ASAP.

This KEP proposes the incorporation of the CRDMetrics controller into
the Kubernetes organization, similar to its existing counterpart for
native metrics, Kube State Metrics.
Refer: https://github.com/rexagod/crdmetrics
Copy link
Member

@chrischdi chrischdi left a comment

Choose a reason for hiding this comment

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

I'm happy to see this :-)

I will follow along and try to engage and help where possible for me!

Comment on lines +243 to +245
* while providing cluster-scoped managed resources (`CRDMetricsResource`) that
allows defining the collection configuration for generating metrics
on-the-fly, and,
Copy link
Member

Choose a reason for hiding this comment

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

🎉 This will be awesome. Having this as a CRD also makes the configuration versioned 👍

would be good to keep the API package which defines the type clean so importing it in other projects (e.g. https://github.com/kubernetes-sigs/controller-tools ) would not introduce other transitive dependencies.

I plan to add a generator for this in controller-tools so the config can be generated from markers just like the CRD itself.

Prior art regarding transitive dependencies for an API package:

kubernetes-sigs/cluster-api#9011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory lead-opted-in Denotes that an issue has been opted in to a release sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants