zabbix / community-templates

Zabbix Community Templates repository

Home Page:https://share.zabbix.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kube by Prom API does not discover/monitor pods with same name under different namespaces

sumukharaj opened this issue · comments

Kube by Prom API (Discovery) discovers pods with same name but under different namespaces.
For example in the below screenshot, there are several pods with the name ai-postgres-0 but the template will discover only one
image

Similarly the Kube Pod by Prom API template will collect data for only one of the pods. not the rest of them.

A change in host Prototype for the discovery template works only for discovery. but not for metric collection.

For example: change Host Prototype from "{#PODNAME}" to "{#PODNAME}_{#NAMESPACE}" will allow discovery of multiple pods with same name but different namespaces. but the metrics will not be fetched by Kube Pod by Prom API template