kubernetes-app
kubernetes-app copied to clipboard
Update exporters keys and metrics names, Kubernetes API Versions and Fix dashboards
This pull request fully works with the following versions:
current - October-10-2019
Kubernetes: v1.16.1 [current v1.16.1]
Node exporter: v0.18.1 [current v0.18.1]
Kube-state-metrics: v1.8.0 [current v1.8.0]
Prometheus: v2.13.0 [current v2.13.0]
Grafana: v5.0.0-5.0.4 [current v6.4.2] *explained below
About the exporters:
The deploy button present in the plugin have the most updated version of the file. However you may need to re-check, since updates or permissions may have changed.
For a fully working solution you can use the code from the repository as stated below.
You can check this repository (under development) that contains the full stack where this pull request was tested, in order to fully work with the plugin and all the recent versions - https://github.com/andre-lx/grafana-prometheus-exporters
About prometheus config file:
The only thing that changed in the config file, is the replacement of the value present in the "instance" key in some metrics from the ip from the node, to the node name.
.
.
.
- source_labels: ['__meta_kubernetes_pod_node_name']
action: replace
target_label: instance
.
.
.
About grafana version:
!!! Javascript developer wanted !!!
The plugin works in the most recent versions, but the custom pannels created for version 5.0.0 starts to fail in some functionalities for versions 5.0.4+.
Aready debugged:
Versions | Comment |
---|---|
5.0.0-5.0.4 | everithing ok - FULLY COMPATIBLE |
5.1.0-5.3.4 | lost scrool on node custom panel after select node |
5.4.0-5.4.5 | URL is updated but not the charts on container dashboard |
6.0.0+ | after this version - lost scroll, URL update and charts updates |
API Versions updates:
API | Current version | Pull request version |
---|---|---|
API K8S | /apis/apps/v1beta1/namespaces/ | /apis/apps/v1/namespaces/ |
API K8S | /apis/extensions/v1beta1/namespaces/ | /apis/apps/v1/namespaces/ |
API K8S | /apis/extensions/v1beta1/' + addNamespace(namespace) | /apis/apps/v1/' + addNamespace(namespace) |
API K8S | /apis/extensions/v1beta1/ | /apis/apps/v1 |
API K8S | api/datasources/proxy/' + clusterId + '/apis/extensions/v1beta1 | api/datasources/proxy/' + clusterId + '/apis/apps/v1 |
Deployment | apps/v1beta1 | apps/v1 |
DaemonSet | extensions/v1beta1 | apps/v1 |
Component versions updates:
Component | Current version | Pull request version |
---|---|---|
Kubernetes | v1.6+ | v1.16.1 |
Node exporter | v0.15.0 | v0.18.1 |
Kube state metrics | v1.1.0 | v1.8.0 |
Prometheus | ??? | v2.13.0 |
Grafana | v5.0.0 | v5.0.4 |
If you want to use this fork of the project:
-
If you don't have the plugin already installed, please install using the grafana cli
grafana-cli plugins install grafana-kubernetes-app
-
If you already have the plugin installed: 2.1 Go to your grafana plugins folder 2.2 Move/delete the plugin folder
mv grafana-kubernetes-app grafana-kubernetes-app.old
2.3git clone https://github.com/andre-lx/kubernetes-app.git grafana-kubernetes-app
2.4 Restart grafana service 2.5 Go to your plugin config page inside grafana -> Dashboards -> Re-import the four dashboards
As your update is really mandatory to this plugin, I think they're not maintaining it anymore. (@jtlisi Are you there?) I think this repository can be a substitute, but I couldn't manage to setup that with my current configurations.
As your update is really mandatory to this plugin, I think they're not maintaining it anymore. (@jtlisi Are you there?) I think this repository can be a substitute, but I couldn't manage to setup that with my current configurations.
Hi. This will work with the current versions. I know that the project it's basically dead. But, this plugin really help me out with my bare metal kubernetes cluster. And thanks for the devopsprodigy/kubegraf. I didn't know that project.