Prometheus 2.0 Stats no data

  • What Grafana version and what operating system are you using?
    Grafana v10.1.4 (a676a96d91

  • What are you trying to achieve?
    I would like to see the stats of the Promethues 2.0 Stats Dashboard

  • How are you trying to achieve it?
    I have Grafana and Prometheus installed as well as some jobs set up, server stats and other node exporters like mastodon or synapse are working.

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No error messages or similar
    I can’t find the metric names given in the dashboard even using the explore function

  • Did you follow any online instructions? If so, what is the URL?
    Install Grafana on Debian or Ubuntu | Grafana documentation

Hey, that means mostly probably you dont have the prometheus_.* metrics in your prometheus server.

Do a recheck on the scrape configs in your prometheus server if it there’s a job to scrape itself or not.

I don’t understand, how can that be done?

You need add a new scrape job :

  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: "prometheus"
      - targets: ["localhost:9090"]

And its explained better here : Getting Started with Prometheus | Prometheus

1 Like

so i have to create a separate scrape job for prometheus itself too
thought prometheus would do that automatically

thanks have just entered it, now I see the statistics