The following instructions are verified to work with kubernetes v1.11.2
Log in to master
cd ~
git clone https://github.com/5g-media/kubernetes-prometheus.git
cd kubernetes-prometheus
git checkout 7a0dd19d03c8909420ee1031ea5c5509cde134df
kubectl create namespace monitoring
kubectl create -f clusterRole.yaml
kubectl create -f config-map.yaml
kubectl create -f prometheus-deployment.yaml
kubectl create -f prometheus-service.yaml --namespace=monitoring
Login to master
docker run -d -p 3000:3000 --name grafana grafana/grafana:4.6.3
Login to UI: http://master_ip_address:3000(admin:admin)
- Type: Prometheus
- HTTP Settings -> URL: http://master_ip_address:30000
- Access: Proxy
- Save and Test
- Dashboard -> Import
- From json -> Paste contents of
5G MEDIA Apache OpenWhisk VIM-GPU-1536160005130.json
Log into master
cd ~
git clone https://github.com/kubernetes/kube-state-metrics.git
cd kube-state-metrics
git checkout 1b79b318b25f80aa1a771e5da7611c69a4888304
kubectl apply -f kubernetes
TBD
If, nevertheless, you are using a recent kubernetes cluster, pay attention to removed-cadvisor-metric-labels