Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26230

Update prometheus Pattern LLD Pod Kubernetes

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • Templates (T)
    • None

      Steps to reproduce:

      1. Configure Kubernetes monitoring.
      2. Wait for collects;
      3. Create a pod with same name in different namespaces.

      Result:

      The Kubernetes cluster state by HTTP template, in the "Pod discovery" LLD rule, all preprocessing rules of the Prometheus Pattern type filter only by POD name. If there is a pod with the same name in different namespaces, the filter does not work correctly.

       

      Expected:
      Change preprocessing rules, include namespace filters.

      kube_pod_container_resource_limits{pod="{#NAME}", resource="cpu"}
      
      kube_pod_container_status_restarts_total{namespace="{#NAMESPACE}",pod="{#NAME}"}
      kube_pod_container_resource_limits{namespace="{#NAMESPACE}", pod="{#NAME}", resource="memory"}
      kube_pod_container_resource_limits{namespace="{#NAMESPACE}", pod="{#NAME}", resource="cpu"}
      kube_pod_container_resource_requests{namespace="{#NAMESPACE}", pod="{#NAME}", resource="cpu"}
      kube_pod_container_resource_limits{namespace="{#NAMESPACE}", pod="{#NAME}", resource="memory"}
      
      kube_pod_container_resource_requests{namespace="{#NAMESPACE}", pod="{#NAME}", resource="memory"}
      
      kube_pod_container_status_restarts_total{namespace="{#NAMESPACE}", pod="{#NAME}"}
      kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Failed"}
      
      kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Pending"}
      
      kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Unknown"}
      

            zabbix.dev Zabbix Development Team
            bernardo.lankheet Bernardo Lankheet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: