Package io.micrometer.stackdriver
Interface StackdriverConfig
- All Superinterfaces:
io.micrometer.core.instrument.config.MeterRegistryConfig
,io.micrometer.core.instrument.push.PushRegistryConfig
,io.micrometer.core.instrument.step.StepRegistryConfig
public interface StackdriverConfig
extends io.micrometer.core.instrument.step.StepRegistryConfig
StepRegistryConfig
for Stackdriver.- Since:
- 1.1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.google.api.gax.core.CredentialsProvider
ReturnCredentialsProvider
to use.default String
Return metric type prefix.default String
prefix()
default String
Return resource labels.default String
default boolean
Whether to use semantically correct metric types.default io.micrometer.core.instrument.config.validate.Validated<?>
validate()
Methods inherited from interface io.micrometer.core.instrument.config.MeterRegistryConfig
get, requireValid
Methods inherited from interface io.micrometer.core.instrument.push.PushRegistryConfig
batchSize, connectTimeout, enabled, numThreads, readTimeout, step
-
Method Details
-
prefix
- Specified by:
prefix
in interfaceio.micrometer.core.instrument.config.MeterRegistryConfig
-
projectId
-
resourceLabels
Return resource labels.- Returns:
- resource labels.
- Since:
- 1.4.0
-
resourceType
-
useSemanticMetricTypes
default boolean useSemanticMetricTypes()Whether to use semantically correct metric types. This isfalse
by default for the sake of backwards compatibility. For example, when this isfalse
, counter metrics are published as the GAUGE MetricKind. When this istrue
, counter metrics are published as the CUMULATIVE MetricKind.If you have published metrics to Stackdriver before, switching this flag will cause metrics publishing to fail until you delete the old MetricDescriptor with the previous MetricKind so that it can be recreated with the new MetricKind next time that metric is published. For example, the projects.metricDescriptors.delete API can be used to delete an existing MetricDescriptor.
- Returns:
- a flag indicating if semantically correct metric types will be used
- Since:
- 1.8.0
-
metricTypePrefix
Return metric type prefix.Available prefixes defined in Google Cloud documentation.
- Returns:
- a prefix for MetricType
- Since:
- 1.10.0
-
credentials
default com.google.api.gax.core.CredentialsProvider credentials()ReturnCredentialsProvider
to use.- Returns:
CredentialsProvider
to use- Since:
- 1.4.0
-
validate
default io.micrometer.core.instrument.config.validate.Validated<?> validate()- Specified by:
validate
in interfaceio.micrometer.core.instrument.config.MeterRegistryConfig
- Specified by:
validate
in interfaceio.micrometer.core.instrument.push.PushRegistryConfig
-