Sum values grup by instance

Hi all,
I’ve some templates to show data. One of this is reporting the sum of all instances calculating the percent as follow:

It reports the total percent of the used space of all systems, one single value

Due the instances are different, I would like to split those and so calculate the value grup by instances, to have the total of all instances, and report them then in STATS or GAUGE.


Thanks, Simon

Hello, any hints? :slight_smile: :wink:


This solved the issue:

sum by (instance) (purefa_array_space_used_bytes) / sum by (instance) (purefa_array_space_capacity_bytes)  

Hope that helps someone :wink:

Cheers, Simon