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

Kubernetes: Get state metrics gives timeout

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Cannot Reproduce
    • Icon: Trivial Trivial
    • None
    • 6.0.4
    • Templates (T)
    • None
    • Operating System: Ubuntu 20.04
      Kubernetes version: 1.21.5
      Kubespray version: 2.17.1
      Zabbix Version: 6.0.4

      Steps to reproduce:

      1. Install Zabbix 6.0.4
      2. Install Kubernetes Cluster by Kubespray 2.17.1, kubernetes version 1.21.6 or 1.21.5
      3. Install Zabbix Helm Chart by instruction: https://git.zabbix.com/projects/ZT/repos/kubernetes-helm/browse?at=refs%2Fheads%2Frelease%2F6.0
      4. Create a new host, apply the template "Kubernetes cluster state by HTTP", change macros adding the URL and authorization key
      5. Test "Get state metrics"

      Result: 

      {"error":"Error: cannot get URL: Timeout was reached."}

       

      I first tried it on my existing cluster. After some experimenting, I tried to install comletely new cluster and completely new zabbix server - the same result.

      Also I need to mention that if I open the pod in Kubernetes Lens and click on the URL, it opens correctly in the browser and gives me the metrics.

      All the other items are working correctly.

      Tell me if you need any other information. Thanks in advance.

        1. image-2022-05-26-14-04-26-328.png
          18 kB
          Wladimir
        2. kube_state_metrics.log
          3 kB
          Wladimir
        3. proxy.log
          5.26 MB
          Wladimir

            zabbix.support Zabbix Support Team
            stav Wladimir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: