The right Prometheus matrix for Jenkins agent doesn't show in Grafana

Hi all,

  • What Grafana version and what operating system are you using?

    • using Grafana 11.4 with Prometheus 2.54
  • What are you trying to achieve? I followed this (Jenkins agent monitoring with Prometheus | by Rudolf Horváth | Tresorit Engineering | Medium) instructions and set-up a jenkins job - that create a plan text html file for Prometheus to consume and provide Jenkins agents health status - endpoint setup and refresh is as expected
    sample line from the file (replaced agent details)
    jenkins_agent_is_connected{agent_name=“”, node_labels=“docker AllWindows “, ip=””} 1
    I’ve configured a job in prometheus.yml that should collect the data - as instructed in the doc

    • job_name: ‘jenkins-agents’
      scrape_interval: 5m
      scheme: https
      basic_auth:
      username:
      password:
      static_configs:
      - targets: [‘’]
      metrics_path: ‘/Jenkins_Agents_Prometheus/lastSuccessfulBuild/artifact/prometheus’

I expected to see the relevant matrixes in Grafana, I see the Job listed under Jobs label but I don’t see the matrixes from the file, instead I see the below matrixes (not found in the file).

any suggestions?