> For the complete documentation index, see [llms.txt](https://dev7days.gitbook.io/dev7days/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev7days.gitbook.io/dev7days/monitoring.md).

# Monitoring

Describe about Monitoring

In Kubernetes, there isn't a fully built-in feature for monitoring, but open-source solutions like `Metric Server`, `Prometheus`, `ElasticStack`, etc., can be utilized. Previously, Kubernetes had `Heapster` as a project for enabling monitoring, but it has been deprecated. The subsequent version now relies on `Metric Server` for this purpose.

**CheatSheet command**

1. View CPU utilize: `kubectl top <type_component> (node or pod)`
2. Log the Kubernetes container: `kubectl logs -f <pod_name>` \
   in the case it has multiple container `kubectl logs -f <pod_name> <container_name>`<br>
