[prometheus-users] Re: promql stat functions return identical values

2024-09-27 Thread 'Brian Candler' via Prometheus Users
> e.g. Grafana can quite happily render 0-1 as 0-100% and in alerting rules: - expr: blah > 0.9 annotations: summary: 'filesystem usage is high: {{ $value | humanizePercentage }}' -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To un

[prometheus-users] Re: promql stat functions return identical values

2024-09-27 Thread 'Brian Candler' via Prometheus Users
Perform the two halves of the query separately, i.e. max_over_time(node_filesystem_avail_bytes{...}[1h] max_over_time(node_filesystem_size_bytes{...}[1h] and then you'll see why they divide to give 48% instead of 97% I expect node_filesystem_size_bytes doesn't change much, so max_over_time doesn