In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about the use of zabbix to monitor K8s abnormal POD solution, many people may not understand, in order to let everyone know more, Xiaobian summarized the following content for everyone, I hope you can harvest according to this article.
By monitoring abnormal pods, problems with k8s can be found in time. The principle is to use kubectl get pod -all-namespaces to find the ready column. If the number of ready is inconsistent with the number of desire, or if the status POD is not RUNNING, the pod is considered abnormal, and then the alarm is given.
Configure agent monitoring items
/etc/zabbix/zabbix_agentd.d/k8s.conf
UserParameter=abnormal.pod, kubectl get pod --all-namespaces -o wide | awk 'NR>1{cmd="echo "$3" | bc";cmd|getline ret;close(cmd);if (ret != 1 || $4 != "Running"){print}}'
import template
3.2
2017-06-16T03:51:42Z
Templates
Template App K8s
Template App K8s
Templates
k8s
abnormal pod
0
0
abnormal.pod
60
90
0
0
4
0
0
0
0
1
0
0
0
k8s
{Template App K8s:abnormal.pod.strlen()}0
0
abnormal pod
0
0
2
0
0
application template
Find nodes that execute kubectl and add the k8s template.
After reading the above, do you have any further understanding of the solution to use zabbix to monitor abnormal POD in K8s? If you still want to know more knowledge or related content, please pay attention to the industry information channel. Thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.