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

Update prometheus Pattern LLD Pod Kubernetes

XMLWordPrintable

    • 1

      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"}
      

            drasikhov Denis Rasikhov
            bernardo.lankheet Bernardo Lankheet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 6h
                6h