kubernetes/examples/monitoring
Vishnu Kannan edf6d8ee3f Use Heapster as an in-built monitoring solution for Kubernetes in GCE.
Users will have an option to enable it when they setup their cluster (kube-up).
2014-11-07 00:47:56 +00:00
..
heapster-pod.json Use Heapster as an in-built monitoring solution for Kubernetes in GCE. 2014-11-07 00:47:56 +00:00
influx-grafana-pod.json Use Heapster as an in-built monitoring solution for Kubernetes in GCE. 2014-11-07 00:47:56 +00:00
influx-grafana-service.json Use Heapster as an in-built monitoring solution for Kubernetes in GCE. 2014-11-07 00:47:56 +00:00
README.md Use Heapster as an in-built monitoring solution for Kubernetes in GCE. 2014-11-07 00:47:56 +00:00

Heapster

Heapster enables monitoring of Kubernetes Clusters using cAdvisor. It currently works only on GCE.

#####Run Heapster in a Kubernetes cluster with an Influxdb backend and Grafana

Step 1: Setup Kube cluster

Fork the Kubernetes repository and turn up a Kubernetes cluster, if you haven't already. Make sure kubectl.sh is exported.

Step 2: Start a Pod with Influxdb, grafana and elasticsearch

$ kubectl.sh create -f deploy/influx-grafana-pod.json

Step 3: Start Influxdb service

$ kubectl.sh create -f deploy/influx-grafana-service.json

Step 4: Update firewall rules

Open up ports tcp:80,8083,8086,9200.

$ gcutil addfirewall --allowed=tcp:80,tcp:8083,tcp:8086,tcp:9200 --target_tags=kubernetes-minion heapster

Step 5: Start Heapster Pod

$ kubectl.sh create -f deploy/heapster-pod.json

Verify that all the pods and services are up and running:

$ kubectl.sh get pods
$ kubectl.sh get services

To start monitoring the cluster using grafana, find out the the external IP of the minion where the 'influx-grafana' Pod is running from the output of kubectl.sh get pods, and visit http://<minion-ip>:80.

To access the Influxdb UI visit http://<minion-ip>:8083.

#####Hints

  • Grafana's default username and password is 'admin'. You can change that by modifying the grafana container here
  • To enable memory and swap accounting on the minions follow the instructions here