python icon indicating copy to clipboard operation
python copied to clipboard

[feat]: Integrate Kubernetes Metrics API into the Python Client

Open Parvezkhan0 opened this issue 2 years ago • 3 comments

What is the feature and why do you need it:

The feature is the integration of the Kubernetes Metrics API into the Python client. This addition will allow users to retrieve metrics data directly through the client, enabling more streamlined monitoring and auto-scaling workflows. Currently, the client lacks native support for querying metrics data, making it necessary to rely on external tools or libraries.

Describe the solution you'd like to see:

I envision the addition of a new module or extension to the existing client specifically dedicated to handling metrics data retrieval. This module should include methods for querying various types of metrics, such as pod metrics, node metrics, and custom metrics. It should also be designed to seamlessly integrate with the existing client structure, providing a consistent user experience.

The solution should ensure compatibility with different versions of Kubernetes to support users on various clusters. Additionally, comprehensive documentation and examples should be provided to guide users in effectively utilizing the new metrics functionalities.

Overall, the goal is to empower users with the ability to access and utilize metrics data directly through the Python client, eliminating the need for external dependencies and enhancing the client's capabilities in monitoring and scaling applications.

Parvezkhan0 avatar Oct 20 '23 18:10 Parvezkhan0

/help

@Parvezkhan0 Could you elaborate what Kubernetes Metrics API is?

roycaihw avatar Oct 23 '23 16:10 roycaihw

@roycaihw: This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-help command.

In response to this:

/help

@Parvezkhan0 Could you elaborate what Kubernetes Metrics API is?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Oct 23 '23 16:10 k8s-ci-robot

I believe the metrics=server is the component responsible for exposing metrics for the HPA controller or the kubectl top command.

rodrigodelmonte avatar Nov 03 '23 09:11 rodrigodelmonte