rfmoz / grafana-dashboards

Grafana dashboards
Apache License 2.0
1.1k stars 438 forks source link

No CPU and Network data in Firefox #137

Closed mihaigalos closed 7 months ago

mihaigalos commented 1 year ago

Hi,

Seems Firefox doesn't display CPU Basic and Network Traffic Basic data:

Bildschirmfoto 2023-06-08 um 18 41 07

Interesingly, CPU Busy works. Also, I do get data displayed in Chrome:

Bildschirmfoto 2023-06-08 um 18 53 55

This however only works with 24h resolution, if I select anything else, it's the same No data as in Firefox.

Versions of tools used:

Alone2 commented 1 year ago

I do have the same Issue, only that I can't replicate the display of the data selecting 24h with a different browser. However, I can see the data if I select 7 days.

I do have the same Issue with the following versions:

Alone2 commented 1 year ago

I was able to fix the issue by setting the 'Scrape interval' in 'Home > Administration > Data sources > Prometheus' to the value defined in Prometheus (in my case 5m):

  - job_name: systems
    scrape_interval: 5m
    metrics_path: '/system'
    static_configs:
      - targets: ['MYHOSTNAME:PORT']

I found this answer in the following pull request: #120

lyz-code commented 10 months ago

If you have set the datasource as a yaml, you need to tweak the timeInterval field. For example:

apiVersion: 1

datasources:
  - name: Prometheus
    type: prometheus
    access: proxy
    # Access mode - proxy (server in the UI) or direct (browser in the UI).
    url: http://prometheus:9090
    jsonData:
      httpMethod: POST
      manageAlerts: true
      timeInterval: 30s
      prometheusType: Prometheus
      prometheusVersion: 2.42.0
      cacheLevel: 'High'
      disableRecordingRules: false
      incrementalQueryOverlapWindow: 10m
      exemplarTraceIdDestinations: []