io.quarkus.micrometer.runtime.export.JsonMeterRegistryProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-micrometer Show documentation
Show all versions of quarkus-micrometer Show documentation
Instrument the runtime and your application with dimensional metrics using Micrometer.
package io.quarkus.micrometer.runtime.export;
import jakarta.enterprise.inject.Produces;
import jakarta.inject.Singleton;
import io.micrometer.core.instrument.Clock;
import io.quarkus.micrometer.runtime.registry.json.JsonMeterRegistry;
@Singleton
public class JsonMeterRegistryProvider {
@Produces
@Singleton
public JsonMeterRegistry registry(Clock clock, io.quarkus.micrometer.runtime.config.MicrometerConfig config) {
return new JsonMeterRegistry(clock, config.export.json.bufferLength, config.export.json.expiry);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy