io.micrometer.core.instrument.logging.LoggingMeterRegistry Java Examples

The following examples show how to use io.micrometer.core.instrument.logging.LoggingMeterRegistry. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LoggingRegistrySample.java    From micrometer with Apache License 2.0 5 votes vote down vote up
@Bean
LoggingMeterRegistry loggingMeterRegistry() {
    return new LoggingMeterRegistry(new LoggingRegistryConfig() {
        @Override
        public String get(String key) {
            return null;
        }

        @Override
        public Duration step() {
            return Duration.ofSeconds(10);
        }
    }, Clock.SYSTEM);
}
 
Example #2
Source File: SampleRegistries.java    From micrometer with Apache License 2.0 5 votes vote down vote up
public static LoggingMeterRegistry logging() {
    return new LoggingMeterRegistry(new LoggingRegistryConfig() {
        @Override
        public String get(String key) {
            return null;
        }

        @Override
        public Duration step() {
            return Duration.ofSeconds(10);
        }
    }, Clock.SYSTEM);
}
 
Example #3
Source File: HazelcastCacheSample.java    From micrometer with Apache License 2.0 5 votes vote down vote up
private static LoggingMeterRegistry loggingMeterRegistry() {
    return new LoggingMeterRegistry(new LoggingRegistryConfig() {
        @Override
        public String get(String key) {
            return null;
        }

        @Override
        public Duration step() {
            return Duration.ofSeconds(1);
        }
    }, Clock.SYSTEM);
}
 
Example #4
Source File: HazelcastCacheSample.java    From micrometer with Apache License 2.0 5 votes vote down vote up
private static LoggingMeterRegistry loggingMeterRegistry() {
    return new LoggingMeterRegistry(new LoggingRegistryConfig() {
        @Override
        public String get(String key) {
            return null;
        }

        @Override
        public Duration step() {
            return Duration.ofSeconds(1);
        }
    }, Clock.SYSTEM);
}
 
Example #5
Source File: LoggingMetricsPlugin.java    From activemq-artemis with Apache License 2.0 4 votes vote down vote up
@Override
public ActiveMQMetricsPlugin init(Map<String, String> options) {
   this.meterRegistry = new LoggingMeterRegistry();
   return this;
}