Managed Kubernetes cluster monitoring and logs
Managed Kubernetes cluster monitoring and logs
In Managed Kubernetes clusters, you can monitor the state of the cluster — see cluster status and logs.
View cluster status
- In Control Panel, go to Cloud Platform → Kubernetes.
- View the status in the cluster row → Status column.
View logs
The logs show actions performed on the cluster, such as creating the cluster, changing node groups, updating certificates and versions. If the request was performed automatically, for example, a scheduled certificate update, this action will also be logged.
- In Control Panel, go to Cloud Platform → Kubernetes.
- Open the cluster page → Logs tab.
- Look up the status in the event row → Status column.
Configure logging via Filebeat
Containers log files are located in /var/log/pods/ or /var/log/containers (link to /var/log/pods/).
Filebeat is configured to work with Docker by default. Selectel uses containerd as the container execution environment (CRI) instead of Docker.
To configure the mechanism for retrieving log metadata via Filebeat, use the configuration file:
filebeat.inputs:
- type: container
fields_under_root: true
paths:
- "/var/log/containers/*.log"
processors:
- add_kubernetes_metadata:
host: ${NODE_NAME}
in_cluster: true
default_matchers.enabled: false
matchers:
- logs_path:
logs_path: "/var/log/containers/"