Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#806 from tomdee/influxdb-docs
Browse files Browse the repository at this point in the history
Update influxdb docs
  • Loading branch information
vishh committed Dec 18, 2015
2 parents efc477e + e92ee5d commit 31a1bd7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions docs/influxdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,31 @@

### Setup a Kubernetes cluster
[Bring up a Kubernetes cluster](https://github.com/kubernetes/kubernetes), if you haven't already. Ensure that `kubecfg.sh` is exported.
The cluster must have the kube proxy and kube-dns running.

### Start all of the pods and services
```shell
$ kubectl create -f deploy/kube-config/influxdb/
```

Grafana service by default requests for a LoadBalancer. If that is not available in your cluster, consider changing that to NodePort. Use the external IP assigned to the Grafana service,
to access Grafana.
The default user name and password is 'admin'.
Once you login to Grafana, add a datasource that is InfluxDB. The URL for InfluxDB will be `http://localhost:8086`. Database name is 'k8s'. Default user name and password is 'root'.
Grafana service by default using the api-proxy to relay requests to Grafana. It can then be accessed at http://<KUBE-API-IP>:8080/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/


For production use, configure a LoadBalancer or if that is not available in your cluster, consider using a NodePort. Use the external IP assigned to the Grafana service, to access Grafana.

The default user name and password is 'admin' but you shouldn't need to login to access Grafana. In Grafana you should find a datasource already configured called InfluxDB. The URL for InfluxDB will be `http://localhost:8086`. Database name is 'k8s'. Default user name and password is 'root'.
Grafana documentation for InfluxDB [here](http://docs.grafana.org/datasources/influxdb/).

Take a look at the [storage schema](storage-schema.md) to understand how metrics are stored in InfluxDB.

Grafana is set up to auto-populate nodes and pods using templates.

## Troubleshooting guide
1. If the Grafana service is not accessible, chances are it might not be running. Use `kubectl.sh` to verify that the `heapster` and `influxdb & grafana` pods are alive.
1. If the Grafana service is not accessible, chances are it might not be running. Use `kubectl` to verify that the `heapster` and `influxdb & grafana` pods are alive.

kubectl get pods
kubectl get pods --all-namespaces

kubectl get services
kubectl get services --all-namespaces

2. To access the InfluxDB UI, you will have to make the InfluxDB service externally visible, similar to how Grafana is made publicly accessible.

Expand Down

0 comments on commit 31a1bd7

Please sign in to comment.