« Previous 1 2 3 4
Monitoring container clusters with Prometheus
Perfect Fit
Conclusions
The demo environment shown in this article shows how you can monitor your Kubernetes cluster. Various metrics inform you about what is currently happening in the cluster. More fine tuning helps: You can expand the production monitoring system to include the Alert Manager and the need to think about persistent data storage. The CoreOS Prometheus operator [24] [25] takes an interesting approach; it installs production-ready Kubernetes monitoring with very little effort.
Infos
- Kubernetes: https://kubernetes.io
- "Prometheus" by Michael Kraus, ADMIN , issue 40, 2017, pg. 20, http://www.admin-magazine.com/Archive/2017/40/Time-series-based-monitoring-with-Prometheus
- Example from the Kubernetes documentation: https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus-kubernetes.yml
- More about relabeling: https://www.robustperception.io/life-of-a-label/
- PromQL: https://prometheus.io/docs/querying/basics/
- Prometheus 2.0: https://coreos.com/blog/prometheus-2.0-storage-layer-optimization
- Persistent volumes: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
- Stateful sets: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
- Minikube: https://github.com/kubernetes/minikube
- Installing Minikube: https://github.com/kubernetes/minikube#installation
- Listings for the article: ftp://ftp.linux-magazine.com/pub/listings/admin-magazine.com/41/
- RBAC: https://github.com/prometheus/prometheus/blob/master/documentation/examples/rbac-setup.yml
- Prometheus Docker image: https://hub.docker.com/r/prom/prometheus/
- ConfigMap: https://kubernetes.io/docs/tasks/configure-pod-container/configmap/
- Deployments: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
- Node exporter image: https://hub.docker.com/r/prom/node-exporter/
- DaemonSet: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
- Grafana: https://grafana.com
- Node exporter dashboard: https://grafana.com/dashboards/22
- Kubernetes pod dashboard: https://grafana.com/dashboards/737
- Kubernetes dashboards: https://grafana.com/dashboards?dataSource=prometheus&search=Kubernetes
- kube-state-metrics: https://github.com/kubernetes/kube-state-metrics
- kube-state-metrics documentation: https://github.com/kubernetes/kube-state-metrics/tree/master/Documentation
- Prometheus Operator: https://github.com/coreos/prometheus-operator
- Prometheus Operator documentation: https://coreos.com/operators/prometheus/docs/latest/
« Previous 1 2 3 4
Buy this article as PDF
Express-Checkout as PDF
Price $2.95
(incl. VAT)
(incl. VAT)