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

Dashboard doesn't display metrics #27

Closed ArvinDevel closed 6 years ago

ArvinDevel commented 6 years ago

I use one local grafana server with one prometheus on k8s as datasource, I had verified the prometheus datasource's correctness, and the configured kubernetes-app kubernetes datasource showed up too. But the metrics on all dashboard are not displayed. For example, on K8s Cluster dashboard, I found the reason is that the node variable is not parsed correctly although the cluster variable is parsed. I don't understand the query of node variable , will the prometheus accept the node string as one query parameter, I guess that the plugin does some other work to support this. So my question is why the dashboard doesn't work and why the variables defined is not parsed correctly, for example node in K8s Cluster dashboard? Another question is the what's the implementation guide of the kubernetes-app plugin, I can't find other documentation to know it deeply, such as the defined variable.

ArvinDevel commented 6 years ago

The app said that we can use Kubernetes tags to to filter pod metrics, but these filter has no effect too. I only can see the two empty panel Kubernetes Node Info and Kubernetes Pod Nav. And the principle behind the tag filter is not explained too.

ArvinDevel commented 6 years ago

So could you guys give some details documentations, which will receives more appreciations. Thanks!

ArvinDevel commented 6 years ago

The reason for not working is that the connection to kubernetes is not working. Just like #19 , we should guarantee the connection to kubernetes is valid. The easiest way which I tried is that specifying http url( which should be kubernetes api server url) as localhost:8001 after turn on proxy on localhost and disable tls check.