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

Kubernetes: Get state metrics - SCRIPT type TEXT limitation

XMLWordPrintable

    • Sprint 97 (Feb 2023), Sprint 98 (Mar 2023)
    • 1

      Steps to reproduce:

      1. Use the kubernetes integration helm chart installing zabbix agent and proxy
      2. Apply Kubernetes cluster state by HTTP and Kubernetes nodes by HTTP
      3. Start collecting metrics/items using 

       

      name: 'Kubernetes: Get state metrics'
      type: SCRIPT
      key: kube.state.metrics
      value_type: TEXT

       

      1. Add some history and test : get state metrics.

      Result:
      See screenshot : the result is truncated at 65535 characters 

      Check Text data limits as per documentation https://www.zabbix.com/documentation/current/en/manual/config/items/item

      So out of10480 lines (checked by port-forward svc/zabbix-agent-kube-state-metrics and getting the metrics) zabbix is ingesting only 643 lines of my metrics.

      Resulting in data missing for a lot of items.

      Saw this issue while testing/forcing a pending pvc. The trigger 'PVC discovery ... PVC is pending' was not issuing/provoking a problem as it had no data in its item. 

      Expected:
      All items getting data values.

        1. image-2023-02-16-14-49-00-778.png
          93 kB
          Benjamin Lutz
        2. image-2023-02-16-14-54-57-157.png
          51 kB
          Benjamin Lutz
        3. image-2023-02-16-14-55-36-386.png
          4 kB
          Benjamin Lutz
        4. image-2023-02-16-14-57-41-765.png
          14 kB
          Benjamin Lutz
        5. image-2023-02-16-14-59-41-932.png
          51 kB
          Benjamin Lutz
        6. image-2023-02-16-15-13-27-754.png
          33 kB
          Benjamin Lutz
        7. image-2023-02-16-15-14-43-167.png
          34 kB
          Benjamin Lutz
        8. image-2023-02-16-15-21-12-936.png
          53 kB
          Benjamin Lutz
        9. image-2023-02-16-15-26-10-266.png
          24 kB
          Benjamin Lutz
        10. image-2023-02-17-09-52-51-107.png
          46 kB
          Denis Rasikhov
        11. image-2023-03-28-18-20-17-346.png
          6 kB
          Benjamin Lutz
        12. zabbix_truncated.PNG
          143 kB
          Benjamin Lutz

            drasikhov Denis Rasikhov
            blutz Benjamin Lutz
            Team INT
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: