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.CredentialsProviderReturnCredentialsProviderto use.default Stringprefix()default StringReturn resource labels.default Stringdefault booleanWhether 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, requireValidMethods inherited from interface io.micrometer.core.instrument.push.PushRegistryConfig
batchSize, connectTimeout, enabled, numThreads, readTimeout, step
-
Method Details
-
prefix
- Specified by:
prefixin 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 isfalseby 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
-
credentials
default com.google.api.gax.core.CredentialsProvider credentials()ReturnCredentialsProviderto use.- Returns:
CredentialsProviderto use- Since:
- 1.4.0
-
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
-