Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Datasource is hardcoded for v1beta1 api #88

Open
cbluth opened this issue Feb 13, 2020 · 3 comments
Open

Datasource is hardcoded for v1beta1 api #88

cbluth opened this issue Feb 13, 2020 · 3 comments

Comments

@cbluth
Copy link

cbluth commented Feb 13, 2020

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
Copy link

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
Copy link
Author

cbluth commented Feb 21, 2020

@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: 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
Copy link

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?

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

No branches or pull requests

3 participants