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

unable to fetch metrics from external metrics #609

Closed
yaronworldwide opened this issue Feb 5, 2020 · 8 comments
Closed

unable to fetch metrics from external metrics #609

yaronworldwide opened this issue Feb 5, 2020 · 8 comments

Comments

@yaronworldwide
Copy link

We are currently trying to integrate Keda on existing projects in order to scale up/down (from and to 0) pods according to number of messages in pubsub .
The following metrics are already in use in our GCP-Projects :

v1beta1.custom.metrics.k8s.io monitoring/prom-adapter-1030759040 True 28d
v1beta1.extensions Local True 53d
v1beta1.external.metrics.k8s.io custom-metrics/custom-metrics-stackdriver-adapter True 53d
v1beta1.metrics.k8s.io kube-system/metrics-server True 53d

We would like to figure out a way to integrate keda (despite existing metrics) and the existing issue #20

In order to do so we have removed external.metrics.k8s.io from our keda project

Uploading keda.zip…
Uploading keda-scaledobject.zip…

while executing kubectl describe hpa keda-hpa-xdr-st-3008200-pipeline -n xdr-st the following error appears:
ch metrics from external metrics API: the server could not find the descriptor for metric gcppubsubsubscriptionsize: googleapi: Error 404: Could not find descriptor for metric 'gcppubsubsubscriptionsize'., notFound
Warning FailedComputeMetricsReplicas 9s (x4 over 54s) horizontal-pod-autoscaler failed to get GCPPubSubSubscriptionSize external metric: unable to get external metric xdr-st/GCPPubSubSubscriptionSize/&LabelSelector{MatchLabels:map[string]string{deploymentName: xdr-st-3008200-pipeline,},MatchExpressions:[],}: unable to fetch metrics from external metrics API: the server could not find the descriptor for metric gcppubsubsubscriptionsize: googleapi: Error 404: Could not find descriptor for metric 'gcppubsubsubscriptionsize'., notFound

I would like to know if is possible to integrate keda with our current setup ?
Moreover we need keda to perform scale up / down based on 2 metrics and folloowing bug is currently preventing us to do so - #550
Any estimation on how/when we would be able to integrate multiple metrics to Keda ?

@yaronworldwide
Copy link
Author

Issue was caused because google_credentials were not from secret

@zroubalik
Copy link
Member

@yaronworldwide sorry for reaching to you that late. Could you please confirm to me, that you were able to run KEDA with your own metrics-adapter?

@yaronworldwide
Copy link
Author

@zroubalik I was able to run Keda using existing metrics-adapter (external.metrics.k8s.io) by removing yaml files which were creating keda-metrics (such as metrics-api_service.yaml ...)
Would you like me to share my setup ?

@zroubalik
Copy link
Member

@yaronworldwide that would be great once you have a time :) just out of curiosity

@yaronworldwide
Copy link
Author

yaronworldwide commented Feb 6, 2020 via email

@zroubalik
Copy link
Member

@yaronworldwide thanks! I think you should be able to attach the zip files directly to the comment on this issue. see: https://help.github.com/en/github/managing-your-work-on-github/file-attachments-on-issues-and-pull-requests

@yaronworldwide
Copy link
Author

@zroubalik exactly what I have tried to do but it was stuck at uploading because of corporate firewall

keda-scaledobject.zip
keda.zip

Let me know if additional information is required

@zroubalik
Copy link
Member

@yaronworldwide thanks!

SpiritZhou pushed a commit to SpiritZhou/keda that referenced this issue Jul 18, 2023
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

2 participants