rfmoz / grafana-dashboards

Grafana dashboards
Apache License 2.0
1.17k stars 445 forks source link

Error in many panels with Grafana v8.3.4 #97

Closed Gnomuz closed 1 year ago

Gnomuz commented 2 years ago

Hello, Since upgrading to Grafana v8.3.4, a number of panels are throwing the following error : bad_data: 1:187: parse error: bad duration syntax: "1m1" A typical example is the very first panel "CPU Busy" which now shows N/A Any help will be appreciated

Wolfensteijn commented 2 years ago

I removed all the $interval variables in the json, now it is all working again.

sarus3749 commented 2 years ago

image Hello. Nearly same issue here. I guess this is quite the same reason. Good luck

mentex23 commented 2 years ago

i facing the same problem

fooness commented 2 years ago

@rfrail3 Will this issue be addressed in terms of an update with fix(es)?

Thank you for all of your efforts. 👍

sazarkin commented 2 years ago

Fixed by upgrading prometheus https://github.com/grafana/grafana/issues/44251

mentex23 commented 2 years ago

No it will not fix the issue.. I am running Version 2.34.0 with docker

LosTigeros commented 2 years ago

I had the same issue. I was using Ubuntu's apt repo but I noticed those have old versions of prometheus and prometheus-node-exporter. I have manually updated them to latest released versions and I don't get that error anymore.

Proof - screenshot of dashboard after upgrading ![image](https://user-images.githubusercontent.com/6253928/160338742-59b4b21f-3d42-4e39-a581-d805d94ea44d.png)
northys commented 2 years ago

I also can't confirm this issue. Using latest grafana, prometheus and node-exporter and there are no issues on my dashboard.

Thera re only some blank graphs (with advanced metrics I don't need) but that's definitely because I haven't enabled some collectors.

mentex23 commented 2 years ago

@LosTigeros @northys which node_exporter Version do you use? I have still the same issue using Prometheus 2.35 (also Docker?) and node_exporter 1.3.1, Grafana 8.4.7

northys commented 2 years ago

which node_exporter Version do you use? I have still the same issue using Prometheus 2.35 (also Docker?) and node_exporter 1.3.1, Grafana 8.4.7

docker:

Starting Grafana                         logger=settings version=8.4.2 commit=dea7d4996a branch=HEAD compiled=2022-02-24T11:19:31+0000

/prometheus $ prometheus --version
prometheus, version 2.34.0 (branch: HEAD, revision: 881111fec4332c33094a6fb2680c71fffc427275)
  build user:       root@121ad7ea5487
  build date:       20220315-15:18:00
  go version:       go1.17.8
  platform:         linux/amd64

installed using ansible role https://github.com/cloudalchemy/ansible-node-exporter

root@nuc ~/docker-prometheus # node_exporter --version
node_exporter, version 1.3.1 (branch: HEAD, revision: a2321e7b940ddcff26873612bccdf7cd4c42b6b6)
  build user:       root@243aafa5525c
  build date:       20211205-11:09:49
  go version:       go1.17.3
  platform:         linux/amd64
LosTigeros commented 2 years ago

which node_exporter Version do you use?

Grafana: 8.4.6 node_exporter: 1.3.1 Prometheus: 2.34

mentex23 commented 2 years ago

I guess I have double checked everything.. it is not working in my case on a rPi 4

northys commented 2 years ago

this is all i can provide to you...

docker-compose.yml

version: '3.8'

services:
  grafana:
    image: grafana/grafana
    ports:
      - "127.0.0.1:3000:3000/tcp"
    environment:
      GF_RENDERING_SERVER_URL: http://grafana-renderer:8081/render
      GF_RENDERING_CALLBACK_URL: http://grafana:3000/
      GF_INSTALL_PLUGINS: grafana-image-renderer,grafana-piechart-panel
    restart: unless-stopped
    links:
      - prometheus
    volumes:
      - "grafana:/var/lib/grafana"

  grafana-renderer:
    image: grafana/grafana-image-renderer:latest

  prometheus:
    image: prometheus
    build:
      context: .
      dockerfile: Dockerfile.prometheus
    restart: unless-stopped
    command:
      # default
      - --config.file=/etc/prometheus/prometheus.yml
      - --storage.tsdb.path=/prometheus
      - --web.console.libraries=/usr/share/prometheus/console_libraries
      - --web.console.templates=/usr/share/prometheus/consoles
      # custom
      - --storage.tsdb.retention.time=365d
      - --web.enable-admin-api # insecure
    ports:
      - "127.0.0.1:9090:9090/tcp"
    links:
      - alertmanager
    volumes:
      - prometheus-data:/prometheus

  alertmanager:
    image: alertmanager
    build:
      context: .
      dockerfile: Dockerfile.alertmanager
    restart: unless-stopped
    ports:
      - "127.0.0.1:9093:9093/tcp"
    links:
      - alertmanager-bot

volumes:
  prometheus-data:
    external: true
  grafana:
    external: true

prometheus.yml (removed everything not important)

scrape_configs:
  # SELFMONITORING
  - job_name: 'prometheus'
    scrape_interval: 5s
    static_configs:
      - targets: ['localhost:9090']

  # EXPORTERS
  - job_name: 'home'
    static_configs:
      - targets:
          - "172.17.0.1:9100" # node_exporter
        labels:
          instance: homelab-server
northys commented 2 years ago

also I have imported the dashboard using ID copied from grafana dashboard catalog... it's possible that newer version or something imported directly as json from this repository may be broken...

how did you add the dashboard to your grafana?

mentex23 commented 2 years ago

I have also added it using the ID. I do use Grafana via docker.. I will beginn from the scrath and use grafana docker since the latest build 8.5 is not starting any more.. bug: https://github.com/grafana/grafana/issues/48130

MeikelLP commented 2 years ago

Same issue here:

node_exporter natively

/usr/local/bin/node_exporter --version
node_exporter, version 1.3.1 (branch: HEAD, revision: a2321e7b940ddcff26873612bccdf7cd4c42b6b6)
  build user:       root@2efabfa20624
  build date:       20211205-11:09:40
  go version:       go1.17.3
  platform:         linux/arm

Using the following docker images:

jakubvondrak commented 2 years ago

Had the same issue on Node Exporter 1.3.1, Prometheus 2.35, Grafana 8.5.2 and node-exporter-full.json Dashboard version 67

Changing Scrape Interval of Prometheus Data Source in Grafana to the actual scrape interval of Prometheus (1m in my case) fixed all panels. It has something to do with rate() function. See https://github.com/rfrail3/grafana-dashboards/issues/72

pantgr commented 2 years ago

same issue as jakubvondrak on Node Exporter 1.3.1, Prometheus 2.35, Grafana 8.5.2 and node-exporter-full.json on rpi 2. i manage to fix this with this way , replace the [$__rate_interval] with [$__range] and worked again with no problems , but i have no idia if is the correct way to fix this problem .

Test clean install on debian 11 x64 with the same as above , and works out off the box....

aneurinprice commented 2 years ago

@pantgr Fixed the issue for me. Running everything on latest versions

StarrrLiteNL commented 2 years ago

I have the same issue, the fix of @pantgr did the job and everything is working fine now :)

danpawlik commented 2 years ago

Alternative "fix" is to set "Min step" ($_interval) to e.g. 5m. Screenshot_20220830_150340

m00dy commented 2 years ago

I fixed by updating to the latest of these containers in docker-compose.yml

grafana/grafana:latest prom/node-exporter:latest prom/prometheus:latest

David-Sarif commented 2 years ago

Looks like same thing to me. Fresh installment of the latest version.

@pantgr's method helped, thanks