This repository contains an "exporter" that will expose Kubernetes ressources (pod, replicaset, deployment, statefulset, daemonset) as Grafana Node Graph data source using this Grafana Plugin
kubegraph.mp4
This utilitary can help visualizing how this ressources interact and link with other in a dynamic way.
Great for demonstrating Kubernetes capabilities like rollout.
You need a Kubernetes cluster (it could be something like kind or minkube ofc) with Grafana deploy on it.
Grafana also needs this Grafana Plugin to be installed
Then you can deploy this using :
kubectl apply -f manifests/deploy.yml
Do not forget to add the Node Graph Api using the service dns created by the kubectl command above
You can query this datasource directly inside a node panel. It will then show kubernetes ressources in a graph mode.
You can reduce the scope by adding this query parameter :
ns
for querying specific namespaceselector
for querying specific resources with this label
Example: ns=proxy&selector=app=nginx
will make the data source return resources in proxy
namesapce with app=nginx
labels