Package io.micrometer.graphite
Interface GraphiteConfig
- All Superinterfaces:
io.micrometer.core.instrument.dropwizard.DropwizardConfig
,io.micrometer.core.instrument.config.MeterRegistryConfig
public interface GraphiteConfig
extends io.micrometer.core.instrument.dropwizard.DropwizardConfig
Configuration for
GraphiteMeterRegistry
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault TimeUnit
default boolean
enabled()
Get the value associated with a key.default boolean
default String
host()
default int
port()
default String
prefix()
default GraphiteProtocol
protocol()
default TimeUnit
default String[]
default io.micrometer.core.instrument.config.validate.Validated
<?> validate()
Methods inherited from interface io.micrometer.core.instrument.dropwizard.DropwizardConfig
step
Methods inherited from interface io.micrometer.core.instrument.config.MeterRegistryConfig
requireValid
-
Field Details
-
DEFAULT
Accept configuration defaults
-
-
Method Details
-
get
Get the value associated with a key.- Specified by:
get
in interfaceio.micrometer.core.instrument.config.MeterRegistryConfig
- Parameters:
key
- Key to lookup in the config.- Returns:
- Value for the key or null if no key is present.
-
prefix
- Specified by:
prefix
in interfaceio.micrometer.core.instrument.config.MeterRegistryConfig
- Returns:
- Property prefix to prepend to configuration names.
-
graphiteTagsEnabled
default boolean graphiteTagsEnabled()- Returns:
- Whether Graphite tags should be used, as opposed to a hierarchical naming
convention. Defaults to true if no values are present for
tagsAsPrefix()
. - Since:
- 1.4.0
- See Also:
-
tagsAsPrefix
- Returns:
- For the hierarchical naming convention, turn the specified tag keys into
part of the metric prefix. Ignored if
graphiteTagsEnabled()
istrue
.
-
rateUnits
-
durationUnits
-
host
-
port
default int port() -
enabled
default boolean enabled()- Returns:
true
if publishing is enabled. Default istrue
.
-
protocol
- Returns:
- Protocol to use while shipping data to Graphite.
-
validate
default io.micrometer.core.instrument.config.validate.Validated<?> validate()- Specified by:
validate
in interfaceio.micrometer.core.instrument.dropwizard.DropwizardConfig
- Specified by:
validate
in interfaceio.micrometer.core.instrument.config.MeterRegistryConfig
-