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

Metrics Aggregator #3

Closed
DirectXMan12 opened this issue Apr 25, 2017 · 17 comments
Closed

Metrics Aggregator #3

DirectXMan12 opened this issue Apr 25, 2017 · 17 comments

Comments

@DirectXMan12
Copy link
Contributor

In some cases, it would be nice to be able to have a single endpoint which was able to aggregate multiple different providers of the custom metrics API into a single implementation of the custom metrics API.

This could be useful if one is manually sharding metrics collection in a large cluster, or has multiple different types of metrics collection in a cluster.

@DirectXMan12
Copy link
Contributor Author

cc @luxas @smarterclayton

@luxas
Copy link
Contributor

luxas commented Apr 25, 2017

+1 we talked about this.

Will you create an example here?

@vangarp
Copy link

vangarp commented Jan 11, 2019

From reading at other places (like kubernetes-sigs/prometheus-adapter#45) seems like this is not possible at all right now. @luxas you mentioned you have an example on how one can do this?

@markusthoemmes
Copy link

@DirectXMan12 Could you line out your thoughts on how to achieve this a little more? We have this exact requirement for our Knative setup.

@DirectXMan12
Copy link
Contributor Author

There'd be a few different ways to do this. The custom metrics API is set up such that it's possible to use discovery to find which metrics a given server provides, and thus dispatching on that information should be fairly easy. You'd then need a CRD representing a given source (probably a service name,namespace tuple with some metadata attached). The CRD could be expanded to explicitly choose certain metrics if desired.

At that point, you'd have to make a decision on how to handle duplicate metric names across servers. You could have registration allow claiming particular namespaces, or implicitly claim the namespace the service is in.

I'm curious as to what the usecase in Knative is, though.

@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 Jun 12, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

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 rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jul 12, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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.

@weikinhuang
Copy link

Hi, can we reopen this issue. I would like to use DirectXMan12/k8s-prometheus-adapter for pods not managed by knative, and have the knative autoscaler handle knative metrics.

Right now when you install knative serving, it installs it's own custom.metrics.k8s.io registration, making prometheus-adapter not able to be installed at the same time as it.

@k8s-ci-robot
Copy link
Contributor

@weikinhuang: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

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.

@markusthoemmes
Copy link

/reopen
/remove-lifecycle rotten

@k8s-ci-robot
Copy link
Contributor

@markusthoemmes: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen
/remove-lifecycle rotten

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 k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Nov 25, 2019
@SleepyBrett
Copy link

We were thinking about a proxy metrics adapter. So y9ou would wrap your metrics query in some syntax .. say prometheus(<prometheusquery>) and the write the metrics proxy to parse that and send it along to the proper endpoint based on the provider key.

@bradleyhession1
Copy link

Have any attempts been made to create a solution to this yet? We have a requirement for using both StackDriver + Prometheus together with HPA's

@tomkerkhove
Copy link

And KEDA (https://github.com/kedacore/keda) has customers who are using other metric providers as well.

@k8s-ci-robot
Copy link
Contributor

@Alsheh: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants