yzl
93958d0fb0
|
1 year ago | |
---|---|---|
.. | ||
kubernetes_api_server_http | 1 year ago | |
kubernetes_controller_manager_http | 1 year ago | |
kubernetes_kubelet_http | 1 year ago | |
kubernetes_nodes_http | 1 year ago | |
kubernetes_scheduler_http | 1 year ago | |
kubernetes_state_http | 1 year ago | |
README.md | 1 year ago |
README.md
User guide to setting up Zabbix monitoring of the Kubernetes
A template set for monitoring your Kubernetes cluster via Zabbix 7.0 and higher. Zabbix provides a powerful automated solution for monitoring the Kubernetes cluster components. You need to deploy Zabbix Helm Chart with Zabbix Proxy and Zabbix agents to monitor the cluster.
Pre-requisites and installation
Zabbix is an open-source product that can be installed on a majority of Unix-like distributions at no cost - see full list of supported distributions. Alternatively, Zabbix is available on certain cloud services.
Templates for Kubernetes monitoring
Name | Readme | Template |
---|---|---|
Kubernetes nodes by HTTP | Readme | Template |
Kubernetes cluster state by HTTP | Readme | Template |
Kubernetes API server by HTTP | Readme | Template |
Kubernetes Controller manager by HTTP | Readme | Template |
Kubernetes Scheduler by HTTP | Readme | Template |
Kubernetes kubelet by HTTP | Readme | Template |
Templates are of two types:
-
Cluster node monitoring
Kubernetes nodes by HTTP template discovers cluster nodes, creates hosts in Zabbix based on prototypes and assigns the "Linux by Zabbix agent" template to them. The template collects basic node metrics via the Kubernetes API.
-
Main cluster components monitoring
Kubernetes cluster state by HTTP discovers cluster components and control plane nodes, creates Zabbix hosts and assigns the required templates to them.
Zabbix set up
- Install Zabbix Helm chart according to the instructions.
- Import all templates into Zabbix.
- Get the token automatically created when you install Zabbix Helm Chart.
kubectl get secret zabbix-service-account -n monitoring -o jsonpath={.data.token} | base64 -d
- Create a generic host for the nodes and assign to it the "Kubernetes nodes by HTTP" template.
- Set macros according to the template instructions.
- Create a cluster state host and assign the "Kubernetes cluster state by HTTP" template to it.
- Specify a dummy host interface required for HTTP items.
- Set macros according to the template instructions.
It is strongly recommended to use filtering macros when configuring templates, as on a large cluster the number of discoverable objects can reduce the performance of the monitoring system.