Package io.micrometer.elastic
Class ElasticMeterRegistry
java.lang.Object
io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.push.PushMeterRegistry
io.micrometer.core.instrument.step.StepMeterRegistry
io.micrometer.elastic.ElasticMeterRegistry
public class ElasticMeterRegistry
extends io.micrometer.core.instrument.step.StepMeterRegistry
MeterRegistry for Elasticsearch.- Since:
- 1.1.0
- Implementation Note:
- This implementation requires Elasticsearch 7 or above.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.MeterRegistry.Config, io.micrometer.core.instrument.MeterRegistry.More -
Field Summary
Fields inherited from class io.micrometer.core.instrument.MeterRegistry
clock -
Constructor Summary
ConstructorsModifierConstructorDescriptionElasticMeterRegistry(ElasticConfig config, io.micrometer.core.instrument.Clock clock)protectedElasticMeterRegistry(ElasticConfig config, io.micrometer.core.instrument.Clock clock, ThreadFactory threadFactory, io.micrometer.core.ipc.http.HttpSender httpClient)Create a new instance with given parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic ElasticMeterRegistry.Builderbuilder(ElasticConfig config)protected StringReturn formatted current timestamp.protected TimeUnitprotected StringReturn index name.protected voidpublish()Methods inherited from class io.micrometer.core.instrument.step.StepMeterRegistry
defaultHistogramConfig, newCounter, newDistributionSummary, newFunctionCounter, newFunctionTimer, newGauge, newLongTaskTimer, newMeter, newTimerMethods inherited from class io.micrometer.core.instrument.push.PushMeterRegistry
close, start, start, stopMethods inherited from class io.micrometer.core.instrument.MeterRegistry
clear, config, counter, counter, find, forEachMeter, gauge, gauge, gauge, gauge, gaugeCollectionSize, gaugeMapSize, get, getConventionName, getConventionTags, getMeters, isClosed, meterRegistrationFailed, more, newLongTaskTimer, newTimeGauge, remove, remove, removeByPreFilterId, summary, summary, timer, timer
-
Constructor Details
-
ElasticMeterRegistry
-
ElasticMeterRegistry
protected ElasticMeterRegistry(ElasticConfig config, io.micrometer.core.instrument.Clock clock, ThreadFactory threadFactory, io.micrometer.core.ipc.http.HttpSender httpClient)Create a new instance with given parameters.- Parameters:
config- configuration to useclock- clock to usethreadFactory- thread factory to usehttpClient- http client to use- Since:
- 1.2.1
-
-
Method Details
-
builder
-
publish
protected void publish()- Specified by:
publishin classio.micrometer.core.instrument.push.PushMeterRegistry
-
indexName
Return index name.- Returns:
- index name.
- Since:
- 1.2.0
-
generateTimestamp
Return formatted current timestamp.- Returns:
- formatted current timestamp
- Since:
- 1.2.0
-
getBaseTimeUnit
- Specified by:
getBaseTimeUnitin classio.micrometer.core.instrument.MeterRegistry
-