From f9d8ecb66f2ae51a63bfc1a340171efef3ab3e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Sander?= Date: Wed, 23 Oct 2024 07:31:43 +0000 Subject: [PATCH] fix(influxdb2): Allow pos/neg engine cache values Fixes #933 --- src/lib/post-to-influxdb.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/post-to-influxdb.js b/src/lib/post-to-influxdb.js index 791569cc..cb219370 100755 --- a/src/lib/post-to-influxdb.js +++ b/src/lib/post-to-influxdb.js @@ -454,9 +454,9 @@ export async function postHealthMetricsToInfluxdb(serverName, host, body, server new Point('cache') .uintField('hits', body.cache.hits) .uintField('lookups', body.cache.lookups) - .uintField('added', body.cache.added) - .uintField('replaced', body.cache.replaced) - .uintField('bytes_added', body.cache.bytes_added), + .intField('added', body.cache.added) + .intField('replaced', body.cache.replaced) + .intField('bytes_added', body.cache.bytes_added), new Point('saturated').booleanField('saturated', body.saturated), ];