addons: Add grafana 4.6.1 and extend prometheus docs

This commit is contained in:
Dalton Hubble
2017-11-05 15:23:56 -08:00
parent 77fc14db71
commit 279f36effd
5 changed files with 80 additions and 4 deletions

View File

@ -5,7 +5,7 @@ Every Typhoon cluster is verified to work well with several post-install addons.
* [CLUO](cluo.md) (Container Linux only)
* Nginx [Ingress Controller](ingress.md)
* [Heapster](heapster.md)
* Kubernetes [Dashboard](dashboard.md)
* [Prometheus](prometheus.md)
* Grafana
* [Grafana](prometheus.md#grafana)
* Kubernetes [Dashboard](dashboard.md)

View File

@ -45,6 +45,21 @@ Visit [127.0.0.1:9090](http://127.0.0.1:9090) to query [expressions](http://127.
<br/>
![Prometheus Targets](/img/prometheus-targets.png)
### Visualization
## Grafana
Grafana can be used to build dashboards and rich visualizations that use Prometheus as the datasource. Create the grafana deployment and service.
```
kubectl apply -f addons/grafana -R
```
Use `kubectl` to authenticate to the apiserver and create a local port-forward to the Grafana pod.
```
kubectl port-forward grafana-POD-ID 8080 -n monitoring
```
Visit [127.0.0.1:8080](http://127.0.0.1:8080), add the prometheus data-source (http://prometheus.monitoring.svc.cluster.local), and import your desired dashboard (e.g. 315).
![Grafana Dashboard](/img/grafana-dashboard.png)
Grafana can be used to build dashboards and rich visualizations that use Prometheus as the datasource. Favor Grafana for these use cases and use the Prometheus for debugging or quickly checking available metrics.

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB