Package org.elasticsearch.telemetry
Class TestTelemetryPlugin
java.lang.Object
org.elasticsearch.plugins.Plugin
org.elasticsearch.telemetry.TestTelemetryPlugin
- All Implemented Interfaces:
Closeable
,AutoCloseable
,TelemetryPlugin
TelemetryPlugin that uses RecordingMeterRegistry to record meter calls
and exposes measurement getters.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.plugins.Plugin
Plugin.PluginServices
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
collect()
getMetrics
(Instrument instrument) getRegisteredMetrics
(InstrumentType instrumentType) getTelemetryProvider
(Settings settings) void
Methods inherited from class org.elasticsearch.plugins.Plugin
additionalSettings, close, createComponents, getAdditionalIndexSettingProviders, getBootstrapChecks, getExecutorBuilders, getIndexTemplateMetadataUpgrader, getNamedWriteables, getNamedXContent, getSettings, getSettingsFilter, onIndexModule
-
Field Details
-
meter
-
-
Constructor Details
-
TestTelemetryPlugin
public TestTelemetryPlugin()
-
-
Method Details
-
getMetrics
-
getDoubleCounterMeasurement
-
getLongCounterMeasurement
-
getLongAsyncCounterMeasurement
-
getDoubleUpDownCounterMeasurement
-
getLongUpDownCounterMeasurement
-
getDoubleGaugeMeasurement
-
getLongGaugeMeasurement
-
getDoubleHistogramMeasurement
-
getLongHistogramMeasurement
-
collect
public void collect() -
resetMeter
public void resetMeter() -
getRegisteredMetrics
-
getTelemetryProvider
- Specified by:
getTelemetryProvider
in interfaceTelemetryPlugin
-