Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to configure and enable Kubernetes Monitoring using Zabbix?

  • Method 1 – Using Zabbix in Kubernetes Template
  • Method 2 – Using prometheus operator in Kubernetes clustor & Zabbix Integration with prometheus
  • Method 3 – Using Zabbix operator – Under Developement

Method 1 – Using Zabbix in Kubernetes Template

Step 1 – Setup a Kubernetes Clustor

Step 2 – How Kubernetes Monitoring Works?

All the moniotring is done using

  • Docker – Its a running deamon, you can find in each host
  • Kubelet – Its a running deamon, you can find in each host
  • API of Kubernetes Components such API server,Controller manager, Scheduler etc

Step 3 – Understand How to fetch metrices from API in Kubernetes?

You need 2 information

  • API Adress(URL). ie. {$KUBE.API.SERVER.URL}
  • Access (Password – Token – Certificate). ie. {$KUBE.API.TOKEN}

Step 4 – Decice what you want to monitor? Choose a template accordingly.

  • Kubernetes API server by HTTP
  • Kubernetes cluster state by HTTP
  • Kubernetes Controller manager by HTTP
  • Kubernetes kubelet by HTTP
  • Kubernetes nodes by HTTP
  • Kubernetes Scheduler by HTTP

Step 5 – Add Host in Zabbix and Choose Kubernetes template and Set your template Macros as the per setup

  • https://github.com/sleepka/zabbix-kubernetes-monitoring
  • https://github.com/FU-Solutions/zabbix_kubernetes_checks

Method 2 – Using prometheus operator in Kubernetes clustor & Zabbix Integration with prometheus

  • prometheus is written in golang
  • kubernetes is written in golang
  • prometheus is a cncf project like kubernetes
  • prometheus integ with kubernetes is very powerful compare to all
  • To monitor kubernetes, prometheus has kubernetes operator which is very powerful and easy

https://www.zabbix.com/integrations/prometheus

Method 3 – Using Zabbix operator – Under Developement

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x