From fb7f7fd8c8b1390900e233ff6dca58ea3a384654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Thu, 9 Aug 2018 07:25:30 -0500 Subject: [PATCH] Expand to the brief logging/metrics slide Thanks to @abuisine for reminding me that Heapster is going through a deprecation cycle. I'm also expanding these two slides to be a bit more useful and relevant. --- slides/kube/whatsnext.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/slides/kube/whatsnext.md b/slides/kube/whatsnext.md index bbce2681..c77da18f 100644 --- a/slides/kube/whatsnext.md +++ b/slides/kube/whatsnext.md @@ -93,13 +93,35 @@ And *then* it is time to look at orchestration! --- -## Logging and metrics +## Logging - Logging is delegated to the container engine -- Metrics are typically handled with [Prometheus](https://prometheus.io/) +- Logs are exposed through the API - ([Heapster](https://github.com/kubernetes/heapster) is a popular add-on) +- Logs are also accessible through local files (`/var/log/containers`) + +- Log shipping to a central platform is usually done through these files + + (e.g. with an agent bind-mounting the log directory) + +--- + +## Metrics + +- The kubelet embeds cAdvisor, which exposes container metrics + + (cAdvisor might be separated in the future for more flexibility) + +- [Heapster](https://github.com/kubernetes/heapster) is a popular add-on + + (but is being [deprecated](https://github.com/kubernetes/heapster/blob/master/docs/deprecation.md) starting with Kubernetes 1.11) + +- It is now recommended to use the [Metrics Server](https://kubernetes.io/docs/tasks/debug-application-cluster/core-metrics-pipeline/) instead + +- It is a good idea to start with [Prometheus](https://prometheus.io/) + + (even if you end up using something else) ---