Update custom Gauges to Micrometer MeterBinders

This commit is contained in:
Chris Eager authored and Chris Eager committed 2024-04-17 17:43:34 -05:00
1 parent 10dfa18e81
commit ab64828661
5 files changed
+34 -31

No files matched your search

@@ -75,7 +75,7 @@ class OperatingSystemMemoryGaugeTest {
@ParameterizedTest
@MethodSource
void testGetValue(final String metricName, final long expectedValue) {
assertEquals(expectedValue, new OperatingSystemMemoryGauge(metricName).getValue(MEMINFO.lines()));
assertEquals(expectedValue, OperatingSystemMemoryGauge.getValue(MEMINFO.lines(), metricName));
}
@SuppressWarnings("unused")