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.PushRegistryConfigConfiguration forWavefrontMeterRegistry.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static WavefrontConfigDEFAULT_DIRECTPublishes directly to the Wavefront API, not passing through a sidecar.static WavefrontConfigDEFAULT_PROXYPublishes to a wavefront sidecar running out of process.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.StringapiToken()Required when publishing directly to the Wavefront API host, otherwise does nothing.default intdistributionPort()default java.lang.StringglobalPrefix()Wavefront metrics are grouped hierarchically by name in the UI.default java.lang.Stringprefix()default booleanreportDayDistribution()default booleanreportHourDistribution()default booleanreportMinuteDistribution()default java.lang.Stringsource()default java.time.Durationstep()default java.lang.Stringuri()
-
-
-
Field Detail
-
DEFAULT_PROXY
static final WavefrontConfig DEFAULT_PROXY
Publishes to a wavefront sidecar running out of process.
-
DEFAULT_DIRECT
static final WavefrontConfig DEFAULT_DIRECT
Publishes directly to the Wavefront API, not passing through a sidecar.
-
-
Method Detail
-
step
default java.time.Duration step()
- Specified by:
stepin interfaceio.micrometer.core.instrument.push.PushRegistryConfig
-
prefix
default java.lang.String prefix()
- Specified by:
prefixin interfaceio.micrometer.core.instrument.config.MeterRegistryConfig
-
uri
default java.lang.String 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
default int distributionPort()
- Returns:
- The port to send to when sending histogram distributions to a Wavefront proxy.
The default is the port specified in the uri.
For details on configuring the histogram proxy port, see https://docs.wavefront.com/proxies_installing.html#configuring-proxy-ports-for-metrics-histograms-and-traces
- Since:
- 1.2.0
-
source
default java.lang.String source()
- Returns:
- Unique identifier for the app instance that is publishing metrics to Wavefront. Defaults to the local host name.
-
apiToken
@Nullable default java.lang.String 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
@Nullable default java.lang.String 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.
-
-