io.quarkus.micrometer.runtime.config.StorkConfigGroup 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.config;
import java.util.Optional;
import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.annotations.ConfigItem;
@ConfigGroup
public class StorkConfigGroup implements MicrometerConfig.CapabilityEnabled {
/**
* Stork metrics support.
*
* Support for Stork metrics will be enabled if Micrometer support is enabled,
* the Quarkus Stork extension is on the classpath
* and either this value is true, or this value is unset and
* {@code quarkus.micrometer.binder-enabled-default} is true.
*/
@ConfigItem
public Optional enabled;
@Override
public Optional getEnabled() {
return enabled;
}
@Override
public String toString() {
return this.getClass().getSimpleName()
+ "{enabled=" + enabled
+ '}';
}
}