Interface PushRegistryConfig
- All Superinterfaces:
MeterRegistryConfig
- All Known Subinterfaces:
LoggingRegistryConfig
,StepRegistryConfig
Common configuration settings for any registry that pushes aggregated metrics on a
regular interval.
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
default Duration
Deprecated.Connect timeout and read timeout have different meanings depending on the HTTP client.default boolean
enabled()
default int
Deprecated.since 1.1.13 because this configuration is not useddefault Duration
Deprecated.Connect timeout and read timeout have different meanings depending on the HTTP client.default Duration
step()
default Validated
<?> validate()
Validate configuration.static Validated
<?> validate
(PushRegistryConfig config) Validate a provided configuration.Methods inherited from interface io.micrometer.core.instrument.config.MeterRegistryConfig
get, prefix, requireValid
-
Method Details
-
step
- Returns:
- The step size (reporting frequency) to use. The default is 1 minute.
-
enabled
default boolean enabled()- Returns:
true
if publishing is enabled. Default istrue
.
-
numThreads
Deprecated.since 1.1.13 because this configuration is not usedReturn the number of threads to use with the scheduler.Note that this configuration is NOT supported.
- Returns:
- The number of threads to use with the scheduler. The default is 2 threads.
-
connectTimeout
Deprecated.Connect timeout and read timeout have different meanings depending on the HTTP client. Configure timeout options on yourHttpSender
of choice instead.- Returns:
- The connection timeout for requests to the backend. The default is 1 second.
-
readTimeout
Deprecated.Connect timeout and read timeout have different meanings depending on the HTTP client. Configure timeout options on yourHttpSender
of choice instead.- Returns:
- The read timeout for requests to the backend. The default is 10 seconds.
-
batchSize
default int batchSize()- Returns:
- The number of measurements per request to use for the backend. If more measurements are found, then multiple requests will be made. The default is 10,000.
-
validate
Description copied from interface:MeterRegistryConfig
Validate configuration.- Specified by:
validate
in interfaceMeterRegistryConfig
- Returns:
- validation result
-
validate
Validate a provided configuration.- Parameters:
config
- configuration to validate- Returns:
- validation result
- Since:
- 1.5.0
-