hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[Question] How do I monitor every pod in kubernetes

Open ZachariahHu opened this issue 1 year ago • 4 comments

Question

How do I monitor every pod in kubernetes?

ZachariahHu avatar Mar 28 '24 08:03 ZachariahHu

does the kubernetes monitoring not support now?

tomsun28 avatar Mar 28 '24 14:03 tomsun28

image

I want to see the details of the nn9zt pod, memory, CPU ratio, etc

ZachariahHu avatar Mar 29 '24 05:03 ZachariahHu

hi you can update the kubernetes.yml to add custom monitoring metrics, collect them by custom api-server rest-api. https://hertzbeat.dromara.org/docs/advanced/extend-http
https://raw.githubusercontent.com/dromara/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml

tomsun28 avatar Mar 29 '24 08:03 tomsun28

hi you can update the kubernetes.yml to add custom monitoring metrics, collect them by custom api-server rest-api. https://hertzbeat.dromara.org/docs/advanced/extend-http https://raw.githubusercontent.com/dromara/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml

I hope there is a general template to monitor the pod situation of k8s, but it seems that it is not supported now, can it be regarded as a new requirement?

ZachariahHu avatar Apr 02 '24 02:04 ZachariahHu