autoscaler icon indicating copy to clipboard operation
autoscaler copied to clipboard

Ignore Bad Values from Google Metrics

Open alexlo03 opened this issue 1 year ago • 1 comments

Hello,

Google Metrics is having an outage (https://status.cloud.google.com/incidents/ERzzrJqeGR2GCW51XKFv#RP1d9aZLNFZEJmTBk8e1) and is returning 0s for some metric queries.

Examples:

high_priority_cpu=0%, BELOW the range [50%-60%] => however, cannot scale to 0 because it is lower than MIN 2000 PROCESSING_UNITS
rolling_24_hr=0%, BELOW the range [85%-95%] => however, cannot scale to 0 because it is lower than MIN 1000 PROCESSING_UNITS
storage=0%, BELOW the range [70%-80%] => however, cannot scale to 0 because it is lower than MIN 100 PROCESSING_UNITS

0 is never a real value for any of these metrics. the poller/scaler should just not proceed.

alexlo03 avatar Jul 15 '24 17:07 alexlo03

I will amend to note that storage can be zero. The CPU metrics still cannot be from what I can tell.

alexlo03 avatar Jul 16 '24 13:07 alexlo03