Note : This project is not officially supported by Rancher/Suse.
- Enable monitoring in the Rancher Management Cluster, aka
local
cluster - Apply the manifest from this repo :
kubectl apply -f ./manifests/exporter.yaml
./manifests/grafana-dashboard
includes a basic dashboard in JSON format that can be imported into Grafana.
./manifests/grafana-dashboard-projects.json
includes a Rancher project-focused dashboard in JSON format that can be imported into Grafana.
./manifests/grafana-dashboard-all-cr.json
includes a dynamic dashboard showing counts for all Rancher custom resources (*.cattle.io).
By default, the exporter will use in-cluster authentication via a associated service account
To test using external authentication via the local kubeconfig
, set the following environment variable:
export RANCHER_EXPORTER_EXTERNAL_AUTH=TRUE
go run main.go
- Navigate to http://localhost:8080/metrics