grafana-dashboards icon indicating copy to clipboard operation
grafana-dashboards copied to clipboard

No data showing

Open cat007mine opened this issue 1 year ago • 4 comments

Hi all.

All my panels are showing N/A. At the top where I select datasource (Prometheus), there is nothing to select in Job or Host, other than 'None'.

My prometheus.yml has:

global: scrape_interval: 15s # By default, scrape targets every 15 seconds.

Attach these labels to any time series or alerts when communicating with

external systems (federation, remote storage, Alertmanager).

external_labels:

monitor: 'codelab-monitor'

A scrape configuration containing exactly one endpoint to scrape:

Here it's Prometheus itself.

scrape_configs:

The job name is added as a label job=<job_name> to any timeseries scraped from this config.

  • job_name: 'prometheus'

    Override the global default and scrape targets from this job every 5 seconds.

    scrape_interval: 5s static_configs:
    • targets: ['localhost:9090']

Example job for node_exporter

- job_name: 'node_exporter'

static_configs:

- targets: ['node_exporter:9100']

Example job for cadvisor

- job_name: 'cadvisor'

static_configs:

- targets: ['cadvisor:8080']

  • job_name: node static_configs: - targets: ['localhost:9100']

Any ideas?

cat007mine avatar Jul 21 '23 00:07 cat007mine

confirming this is the case on master. if you zoom out to 24h , data shows up. will test with older commits

supermarin avatar Oct 13 '23 13:10 supermarin

Fixed, in my case Prometheus was using the default scrape_interval of 1m. Changing this to 15s in global config made it working

supermarin avatar Oct 24 '23 16:10 supermarin

I think that this happens to enough people that it would be a good idea to add a note to the documentation.

rfc1036 avatar Nov 12 '23 19:11 rfc1036

Same problem here. Default scrape interval is 1m

But changing scrape interval to 15s is not best idea in my case. Tried to change Min interval in Query options to 1m but still no data. After changing to 2m it works.

But this does not end up same as scrape interval. Is there any other solution?

davordbetter avatar Jan 29 '24 10:01 davordbetter

Configure the scrape_interval for the datasource as described in the README and it will work.

mweinelt avatar Mar 01 '24 16:03 mweinelt

I'm getting some metric data but no cpu data. And the part of the ReadMe about timeInterval is confusing. There is no such option in the datasource gui for that. The board was working fine until I updated it.

jzielke84 avatar Mar 17 '24 11:03 jzielke84