Can't see Prometheus matrix for Jenkins agent

Using Prometheus 2.54 (accessing by Grafana 11.4).

  • 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 plain 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: {my user}
    passworde_file: {path to token file}
    static_configs:
    • targets: [‘jenkins_base_url’]
      metrics_path: ‘{path to job}/lastSuccessfulBuild/artifact/prometheus’

When I look through Grafana 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).

Don’t see an error in prometheus
any suggestions?