Open sweetdandelions opened 1 year ago
/kind support /triage accepted /assign
Any update on this issue, we are facing the same issue.
I'm also seeing the same issue.
For reference, I am using the following guide.
I have double checked that:
http://
in the URL.I'm facing the same issue. Response for kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1" | jq .
{
"kind": "APIResourceList",
"apiVersion": "v1",
"groupVersion": "custom.metrics.k8s.io/v1beta1",
"resources": []
}
Same issue here. Additionally, I noticed the docs are mentioning different syntax about resource overrides section in values.yam. In some place I saw:
resources:
overrides:
namespace: { resource: "namespace" }
pod: { resource: "pod" }
I.e.: https://github.com/kubernetes-sigs/prometheus-adapter/blob/master/docs/sample-config.yaml Somewhere else:
resources:
overrides:
kubernetes_namespace: { resource: "namespace" }
kubernetes_pod_name: { resource: "pod" }
I.e.: https://github.com/kubernetes-sigs/prometheus-adapter/blob/master/docs/config-walkthrough.md
Or maybe the _kubernetes__ prefix should be used only for custom rules, while no prefix is required for other rule types? It's unclear.
On my side, I fixed the issue. The Prometheus adapter was not able to connect to the prometheus server. You only realize it by looking for such logs:
E0723 13:53:52.921151 1 provider.go:229] unable to update list of all metrics: unable to fetch metrics for query ...
About the syntax to be used in values.yaml, this is the right one:
resources:
overrides:
namespace: { resource: "namespace" }
pod: { resource: "pod" }
The goal was to deploy a Groundplex (SnapLogic) in Kubernetes following the documentation https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/2017558845/Deploying+a+Groundplex+in+Kubernetes+with+Elastic+Scaling
Everything works up until the Prometheus Adapter not being able to scrape the custom metrics defined in the yaml file.
Expected output:
What I got:
There have been similar topics regarding the issue, but I couldn't find any solution for mine. Not an expert in all these topics, started learning a while ago.
Versions used:
Latest Prometheus/Adapter versions. I'm using AWS EKS, infrastructure can be found in the repo https://github.com/sweetdandelions/kube-app-slp
Any help or suggestions on the topic is appreciated.