How are you looking at the data? The value shown depends on the aggregation.
v
Vishnu Teja Vallala
09/26/2023, 10:16 AM
yeah actually i was using sum aggregator, but the issue is if i use noop i can see 3 values for max_heap_bytes (eden,survivor,g1) with values 3.91GB, -1 bytes,-1 bytes. When i sum it the total is going to 7.91GB.
-1 bytes is not valid, but still how is the total going up to 7.91 on sum aggregate. Any idea?
s
Srikanth Chekuri
09/26/2023, 1:16 PM
The aggregation sums the value in the aggregation interval. For instance, if you scrape once every 30s and use sum, it sums the 3.91 and 3.91, which is why you could be seeing this. Isn’t the average appropriate here?
v
Vishnu Teja Vallala
09/27/2023, 5:34 AM
true, that explains why i was seeing 27GB for long intervals and 7.9GB for small intervals.
but If i use average, the -1 values will be used and the the value will be way low.🥲