NXCALS-2380 Fix issue with missing or NaN gauge metric values on micrometer
#Merge request template @acc-logging-team - please have a look for approval.
More information here: https://micrometer.io/docs/concepts#_why_is_my_gauge_reporting_nan_or_disappearing
Closes NXCALS-2380