[k8s] Monitoring with Prometheus and Grafana

Profit from the default cAdvisor deployed by k8s to deploy the
remaining monitoring stack on top, made of node-exporter,
Prometheus and Grafana.

Node-exporter is ran as a normal pod through a manifest, while
Prometheus and Grafana are deployments with 1 replica.

Prometheus has compliance with Kubernetes, so the discovery of
the nodes and other k8s components is configured directly in
Prometheus configuration.

Change-Id: If2cab996b9458580a55b5212ab298c909622e7f3
Partially-Implements: blueprint container-monitoring
This commit is contained in:
Cristovao Cordeiro
2017-01-27 17:03:54 +01:00
parent 3a9e8cfb40
commit 248e45f75c
19 changed files with 2725 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
---
features:
- |
Includes a monitoring stack based on cAdvisor, node-exporter, Prometheus
and Grafana. Users can enable this stack through the label
prometheus_monitoring. Prometheus scrapes metrics from the Kubernetes
cluster and then serves them to Grafana through Grafana's Prometheus
data source. Upon completion, a default Grafana dashboard is provided.