pi-hosted icon indicating copy to clipboard operation
pi-hosted copied to clipboard

[QUESTION] Raspberry Pi Dockers Monitor error

Open ramsrq opened this issue 4 years ago • 6 comments

Question I got an error in Grafana Raspberry Pi Dockers Monitor with charts "CPU Busy" and "Disk IO"

Context I just install the stack RaspberryPi-Docker-Monitor in a RPi 4 with: pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

After follow all steps documented on https://github.com/pi-hosted/pi-hosted/blob/master/docs/rpi_docker_monitor.md in Grafana dashboard a got an error in "CPU Busy" and "Disk IO" charts:

bad_data: 1:38: parse error: not a valid duration string: "2.147483647s"

image

Is it possible to correct it?

ramsrq avatar Feb 10 '22 23:02 ramsrq

Installed now and I have the same error.

Edit: The problem is in the string $__rate_interval. I temporaly set the range to calculate rate() function as $__interval instead using $__rate_interval but I can't optimize the monitor of CPU and I/O Disk in this way. You can read this docs to have a better idea. (https://grafana.com/blog/2020/09/28/new-in-grafana-7.2-__rate_interval-for-prometheus-rate-queries-that-just-work/)

Hope someone can help us to find a better solution.

DavideVairetti avatar Feb 18 '22 11:02 DavideVairetti

Installed now and I have the same error.

Edit: The problem is in the string $__rate_interval. I temporaly set the range to calculate rate() fonction as $__interval instead using $__rate_interval but I cin this way an't optimize the monitor of CPU and I/O Disk. You can read this docs to have a better idea. (https://grafana.com/blog/2020/09/28/new-in-grafana-7.2-__rate_interval-for-prometheus-rate-queries-that-just-work/)

I am getting the same error. Where did you make the change? What file?

Bluesguy1984 avatar Mar 02 '22 14:03 Bluesguy1984

Installed now and I have the same error. Edit: The problem is in the string $__rate_interval. I temporaly set the range to calculate rate() fonction as $__interval instead using $__rate_interval but I cin this way an't optimize the monitor of CPU and I/O Disk. You can read this docs to have a better idea. (https://grafana.com/blog/2020/09/28/new-in-grafana-7.2-__rate_interval-for-prometheus-rate-queries-that-just-work/)

I am getting the same error. Where did you make the change? What file?

You need to modify it in the query. Clink on the box title (like CPU busy), go in to the edit menu and you can find the query that the monitor use to get the data from database.

DavideVairetti avatar Mar 02 '22 14:03 DavideVairetti

Thanks @davide-v15 I'll try this workaround Edit: I change the variable from $__rate_interval to $__interval and work for me. image

ramsrq avatar Mar 02 '22 15:03 ramsrq

Installed now and I have the same error. Edit: The problem is in the string $__rate_interval. I temporaly set the range to calculate rate() fonction as $__interval instead using $__rate_interval but I cin this way an't optimize the monitor of CPU and I/O Disk. You can read this docs to have a better idea. (https://grafana.com/blog/2020/09/28/new-in-grafana-7.2-__rate_interval-for-prometheus-rate-queries-that-just-work/)

I am getting the same error. Where did you make the change? What file?

You need to modify it in the query. Clink on the box title (like CPU busy), go in to the edit menu and you can find the query that the monitor use to get the data from database.

Thank you! Was having the exact same issue, modified the query and works like a charm. Star!

Colcobau avatar Mar 05 '22 21:03 Colcobau

Thanks @davide-v15 I'll try this workaround Edit: I change the variable from $__rate_interval to $__interval and work for me. image

ya can close this issue :)

Macleykun avatar Apr 23 '22 14:04 Macleykun

This isssue can be closed @ramsrq

Macleykun avatar Oct 01 '22 17:10 Macleykun