Package io.micrometer.wavefront
Interface WavefrontConfig
- All Superinterfaces:
io.micrometer.core.instrument.config.MeterRegistryConfig,io.micrometer.core.instrument.push.PushRegistryConfig
public interface WavefrontConfig
extends io.micrometer.core.instrument.push.PushRegistryConfig
Configuration for
WavefrontMeterRegistry.- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WavefrontConfigPublishes directly to the Wavefront API, not passing through a sidecar.static final WavefrontConfigPublishes to a wavefront sidecar running out of process. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringapiToken()Required when publishing directly to the Wavefront API host, otherwise does nothing.default intDeprecated.since 1.5.0 this is no longer used as a single proxy port can handle all wavefront formats.default StringWavefront metrics are grouped hierarchically by name in the UI.default Stringprefix()default booleandefault booleandefault booleandefault Stringsource()default Stringuri()default io.micrometer.core.instrument.config.validate.Validated<?>validate()default io.micrometer.core.instrument.config.validate.Validated<?>Methods inherited from interface io.micrometer.core.instrument.config.MeterRegistryConfig
get, requireValidMethods inherited from interface io.micrometer.core.instrument.push.PushRegistryConfig
batchSize, connectTimeout, enabled, numThreads, readTimeout, step
-
Field Details
-
DEFAULT_PROXY
Publishes to a wavefront sidecar running out of process. -
DEFAULT_DIRECT
Publishes directly to the Wavefront API, not passing through a sidecar.
-
-
Method Details
-
prefix
- Specified by:
prefixin interfaceio.micrometer.core.instrument.config.MeterRegistryConfig
-
uri
- Returns:
- The URI to publish metrics to. The URI could represent a Wavefront sidecar
or the Wavefront API host. This host could also represent an internal proxy set up
in your environment that forwards metrics data to the Wavefront API host.
If publishing metrics to a Wavefront proxy (as described in https://docs.wavefront.com/proxies_installing.html), the host must be in the proxy://HOST:PORT format.
-
distributionPort
Deprecated.since 1.5.0 this is no longer used as a single proxy port can handle all wavefront formats.Get distribution port.- Returns:
- distribution port
-
source
- Returns:
- Unique identifier for the app instance that is publishing metrics to Wavefront. Defaults to the local host name.
-
apiToken
Required when publishing directly to the Wavefront API host, otherwise does nothing.- Returns:
- The Wavefront API token.
-
reportMinuteDistribution
default boolean reportMinuteDistribution()- Returns:
trueto report histogram distributions aggregated into minute intervals. Default istrue.- Since:
- 1.2.0
-
reportHourDistribution
default boolean reportHourDistribution()- Returns:
trueto report histogram distributions aggregated into hour intervals. Default isfalse.- Since:
- 1.2.0
-
reportDayDistribution
default boolean reportDayDistribution()- Returns:
trueto report histogram distributions aggregated into day intervals. Default isfalse.- Since:
- 1.2.0
-
globalPrefix
Wavefront metrics are grouped hierarchically by name in the UI. Setting a global prefix separates metrics originating from this app's whitebox instrumentation from those originating from other Wavefront integrations.- Returns:
- A prefix to add to every metric.
-
validate
default io.micrometer.core.instrument.config.validate.Validated<?> validate()- Specified by:
validatein interfaceio.micrometer.core.instrument.config.MeterRegistryConfig- Specified by:
validatein interfaceio.micrometer.core.instrument.push.PushRegistryConfig
-
validateSenderConfiguration
default io.micrometer.core.instrument.config.validate.Validated<?> validateSenderConfiguration()
-