Update custom Gauges to Micrometer MeterBinders

This commit is contained in:
Chris Eager
2024-04-17 16:56:16 -05:00
committed by Chris Eager
parent 10dfa18e81
commit ab64828661
5 changed files with 34 additions and 31 deletions

View File

@@ -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")