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

Duplicate dependent items on "Kubernetes Kubelet by HTTP" template

XMLWordPrintable

    • S24-W30/31
    • 2

      Two dependent items return back duplicate results as the JSONpath used points to the same entry.
      Containers running
      Containers restarts

              - uuid: bc395860d45b45cb89401fc7e50bc015
                name: 'Containers restarts'
                type: DEPENDENT
                key: kube.kubelet.containers.restarts
                value_type: FLOAT
                description: 'The number of times the container has been restarted.'
                preprocessing:
                  - type: JSONPATH
                    parameters:
                      - '$.items[*].status.containerStatuses[*].restartCount.sum()'
                master_item:
                  key: kube.pods
                tags:
                  - tag: component
                    value: containers
              - uuid: e524234eea87438d9ee2a1db9f24cfbb
                name: 'Containers running'
                type: DEPENDENT
                key: kube.kubelet.containers.running
                value_type: FLOAT
                description: 'The number of running containers.'
                preprocessing:
                  - type: JSONPATH
                    parameters:
                      - '$.items[*].status.containerStatuses[*].restartCount.sum()'
                master_item:
                  key: kube.pods
                tags:
                  - tag: component
                    value: containers
      

            egordymov Evgenii Gordymov
            ksalins Karlis Salins
            Team INT
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: