parse error: bad duration syntax for CPU and network
Elikill58 opened this issue · comments
same here
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 Yes, I made a PR about this to suggest the change
same here, I've replaced by $__range seems $__interval does not the job
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.
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"