Search in sources :

Example 1 with UptimeMetrics

use of io.micrometer.core.instrument.binder.system.UptimeMetrics in project micrometer by micrometer-metrics.

the class UptimeMetricsSample method main.

public static void main(String[] args) {
    MeterRegistry registry = SampleConfig.myMonitoringSystem();
    registry.config().commonTags("instance", "sample-host");
    new UptimeMetrics().bindTo(registry);
}
Also used : UptimeMetrics(io.micrometer.core.instrument.binder.system.UptimeMetrics) MeterRegistry(io.micrometer.core.instrument.MeterRegistry)

Aggregations

MeterRegistry (io.micrometer.core.instrument.MeterRegistry)1 UptimeMetrics (io.micrometer.core.instrument.binder.system.UptimeMetrics)1