-
Notifications
You must be signed in to change notification settings - Fork 113
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
CreateNewMetricsCollector : Failed to create new metrics collector #30
Comments
What does your hpa resource look like? I think it's not configured as expected by the metrics-adapter which is why you see the log: |
@mikkeloscar the hpa setting for myservice is
|
Also please escuse my ignorance where exactly I can find the expectations of the metrics-adapter in HPA. the json examples or documentation given in the main readme is not clear enough or detailed enough :( |
Sorry, we have tried to explain this in the README, please let us know if you have ideas on how to make this more clear? For your HPA, the problem is that you specify |
@mikkeloscar |
Yes, that's what's currently supported for the Pods resource type in the metrics-adapter. If you have the data in prometheus you could also use the prometheus collector by configuring your HPA like in this example: https://github.com/zalando-incubator/kube-metrics-adapter#prometheus-collector |
If you guys dont mind then can we have a full end to end example or walkthrough so people can quickly try it out and see if its the right tool for them or not. Because for me it seems to be an overkill as I will need to convert the exporters to write json output and then actually see how it benefits me. Just trying it out first time with the current README is unfortunately not detailed enough. |
@humayunjamal what do you want to achieve with the custom HPA? Scale by request per second or something App specific? |
@szuecs Yes I want to achieve scaling by requests per second . Unfortunately the skipper /metrics also dont expose requests per second metrics. |
@humayunjamal as far as I remember we use the sum of all skipper instances 1m.rate divided by 60, so more sliding window style req/s. @arjunrn maybe you can tell us a bit about how to use it? I guess you also do not really want to have the spiky requests per second in most cases, which would scale up and down way too fast and the hpa would be always in backoff state to calm down. |
@humayunjamal The setup for the |
Closing as this was documented. Please re-open if something is still unclear! |
Expected Behavior
external and custom metrics api should give some output but there is none
Actual Behavior
kubectl get --raw "/apis/external.metrics.k8s.io/v1beta1" | jq .
{
"kind": "APIResourceList",
"apiVersion": "v1",
"groupVersion": "external.metrics.k8s.io/v1beta1",
"resources": []
}
Steps to Reproduce the Problem
Can not find any documentation or examples explaining what is expected here ?
Using the example I am able to successfully run kube-ingress-aws-controller in (https://github.com/zalando-incubator/kube-ingress-aws-controller/tree/master/deploy)
And my prometheus stack detects the skipper metrics and I can see in my promethues graphs the values such as
Now I am expecting/assuming that when I run kube-metrics-adapter with configurations mentioned above , I should be able to see some metrics under api
/apis/external.metrics.k8s.io/v1beta1
or /apis/custom.metrics.k8s.io/v1beta1but its empty .
Remember myservice is NOT running any metrics exporter.
Specifications
The text was updated successfully, but these errors were encountered: