@@ -0,0 +1,689 @@
+package io.micrometer.core.samples;%0A%0Aimport io.micrometer.core.instrument.MeterRegistry;%0Aimport io.micrometer.core.samples.utils.SampleConfig;%0A%0Aimport java.util.concurrent.atomic.AtomicInteger;%0A%0A/**%0A * Demonstrates how monitoring systems deal with NaN values coming out of gauges.%0A */%0Apublic class NullGaugeSample %7B%0A    public static void main(String%5B%5D args) throws InterruptedException %7B%0A        MeterRegistry registry = SampleConfig.myMonitoringSystem();%0A        AtomicInteger n = new AtomicInteger(100);%0A%0A        registry.gauge(%22my.null.gauge%22, (Object) null, o -%3E 1.0);%0A        registry.gauge(%22my.nonnull.gauge%22, n);%0A%0A        for(;;) %7B%0A            Thread.sleep(100);%0A        %7D%0A    %7D%0A%7D%0A

Add NullGaugeSample