Grafana with installed DevOpsProdigy KubeGraf
194
Grafana with installed DevOpsProdigy KubeGraf (https://github.com/devopsprodigy/kubegraf)
Apply Kubernetes manifests from kubernetes/ directory to give
required permissions to the user grafana-kubegraf:
kubectl apply -f https://raw.githubusercontent.com/devopsprodigy/kubegraf/master/kubernetes/serviceaccount.yaml
kubectl apply -f https://raw.githubusercontent.com/devopsprodigy/kubegraf/master/kubernetes/clusterrole.yaml
kubectl apply -f https://raw.githubusercontent.com/devopsprodigy/kubegraf/master/kubernetes/clusterrolebinding.yaml
kubectl apply -f https://raw.githubusercontent.com/devopsprodigy/kubegraf/master/kubernetes/secret.yaml
Create a grafana-kubegraf user private key and certificate on one of the
master nodes:
openssl genrsa -out ~/grafana-kubegraf.key 2048
openssl req -new -key ~/grafana-kubegraf.key -out ~/grafana-kubegraf.csr -subj "/CN=grafana-kubegraf/O=monitoring"
openssl x509 -req -in ~/grafana-kubegraf.csr -CA /etc/kubernetes/pki/ca.crt -CAkey /etc/kubernetes/pki/ca.key -out /etc/kubernetes/pki/grafana-kubegraf.crt -CAcreateserial
Copy /etc/kubernetes/pki/grafana-kubegraf.crt to all other master nodes.
or
Get the token
kubectl get secret grafana-kubegraf-secret -o jsonpath={.data.token} | base64 -d
Go to /configuration-plugins in Grafana and click on the plugin. Then click “enable”.
Go to the plugin and select “create cluster”.
Enter the settings of http-access to the Kubernetes api server:
kubectl cluster-infoOpen the “additional datasources” drop-down list and select the prometheus that is used in this cluster.
Content type
Image
Digest
Size
66.2 MB
Last updated
almost 6 years ago
docker pull laptevss/grafana-with-plugins:7.3.3