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

parse error: bad duration syntax for CPU and network

Open Elikill58 opened this issue 2 years ago • 5 comments

For multiple charts, I get the error bad_data: 1:101: parse error: bad duration syntax: "5m1" :

image

Elikill58 avatar Jan 26 '23 11:01 Elikill58

same here

teamsmiley avatar Jan 28 '23 03:01 teamsmiley

It seems that changing the $__rate_interval to just $__interval fixes this issue. However, it may be that the stats no longer reflect the data it is designed to.

JannikSommer avatar Apr 10 '23 19:04 JannikSommer

@JannikSommer Yes, I made a PR about this to suggest the change

Elikill58 avatar Apr 10 '23 20:04 Elikill58

same here, I've replaced by $__range seems $__interval does not the job

firebird631 avatar May 29 '23 21:05 firebird631

I've found that this is present with prometheus 2.15.x, and is resolved in at least 2.31, I believe I remember seeing a bug report about this being fixed in 2.25.

The most likely issue here is that there's an old prometheus that's running (like my situation).

My particular encounter with this has to do with Ubuntu 20 only having up to 2.15 in the repo, and I have a fixed server running on Ubuntu 22.

There doesn't appear to be a ppa with a more up-to-date prometheus (https://packages.ubuntu.com/search?keywords=prometheus), so a dist upgrade is required or a manual installation.

Nthalk avatar Jun 08 '23 21:06 Nthalk

I'm having this issue right now, with the latest prometheus available on Ubuntu 22. A lot of panels, mainly related to CPU, network and disk have errors along the lines of Status: 400. Message: bad_data: parse error at char 125: bad duration syntax: "2m1"

ZhenyaPav avatar Jul 30 '24 14:07 ZhenyaPav