grafana / kubernetes-app

A set of dashboards and panels for kubernetes.
https://grafana.com/plugins/grafana-kubernetes-app
Apache License 2.0
401 stars 149 forks source link

Datasource is hardcoded for `v1beta1` api #88

Open cbluth opened 4 years ago

cbluth commented 4 years ago

this is for grafana version: v6.6.1 (21bf8b71bc)

configuring a new kubernetes-api datasource always results in failures (404 errors)

the failing URL is this: http://grafana.mydomain:3000/api/datasources/proxy/4/apis/apps/v1beta1/namespaces/kube-system/deployments

{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the server could not find the requested resource","reason":"NotFound","details":{},"code":404}

but, this URL works: http://grafana.mydomain:3000/api/datasources/proxy/4/apis/apps/v1/namespaces/kube-system/deployments

[... lots of data ...]

Here is a screenshot: https://i.imgur.com/tzcywzK.png

GuillaumeOuint commented 4 years ago

Same here, this hardcoded value seems to impact dashboards as well by the fact that variables use the kubernetes-api datasource too. (Cannot get deployments status)

cbluth commented 4 years ago

@GuillaumeOuint

i have made some simple edits, basically search/replace, and i can get past my issue as shown in the screenshot above^, see the branch here: https://github.com/grafana/kubernetes-app/compare/master...cbluth:master

but, although this allows me passed the initial issue, the kubernetes app still has some major issues with querying data, and i dont know javascript well enough to troubleshoot.

blancocardenas commented 4 years ago

I am having the same issue @GuillaumeOuint @cbluth . I am willing to contribute to fix this issue are there any guide lines ? When will the next release be?