Class MetricService
java.lang.Object
org.nanonative.nano.core.model.Service
org.nanonative.nano.services.metric.logic.MetricService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected Stringstatic final intprotected Stringprotected Stringprotected StringFields inherited from class org.nanonative.nano.core.model.Service
context, createdAtMs, isReady -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddMetricsEndpoint(Event event) voidconfigure(berlin.yuna.typemap.model.TypeMapI<?> configs, berlin.yuna.typemap.model.TypeMapI<?> merged) longinflux()metrics()voidvoidstart()voidstop()voidupdateArch(Context context) voidupdateBufferMetrics(Supplier<Context> context) voidupdateClassLoaderMetrics(Supplier<Context> context) voidupdateCompilerMetrics(Nano nano) voidupdateCpuMetrics(Supplier<Context> context) voidupdateDiscMetrics(Supplier<Context> context) voidupdateJavaVersion(Context context) voidupdateMemoryMetrics(Supplier<Context> context) booleanupdateMetric(MetricUpdate metric) updateMetrics(Nano nano) voidupdateNanoMetrics(Nano nano) voidvoidupdatePoolMetrics(Supplier<Context> context) voidupdateSystemMetrics(Context context) voidupdateThreadMetrics(Supplier<Context> context) Methods inherited from class org.nanonative.nano.core.model.Service
configure, context, context, createdAtMs, isReady, isReadyState, name, nanoThread, receiveEvent, threadsOf
-
Field Details
-
prometheusPath
-
dynamoPath
-
influx
-
wavefront
-
CONFIG_METRIC_SERVICE_BASE_PATH
-
CONFIG_METRIC_SERVICE_PROMETHEUS_PATH
-
CONFIG_METRIC_SERVICE_INFLUX_PATH
-
CONFIG_METRIC_SERVICE_WAVEFRONT_PATH
-
CONFIG_METRIC_SERVICE_DYNAMO_PATH
-
EVENT_METRIC_UPDATE
public static final int EVENT_METRIC_UPDATE
-
-
Constructor Details
-
MetricService
public MetricService()
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
onFailure
-
onEvent
-
configure
public void configure(berlin.yuna.typemap.model.TypeMapI<?> configs, berlin.yuna.typemap.model.TypeMapI<?> merged) -
addMetricsEndpoint
-
updateMetric
-
metrics
-
updateMetrics
-
updateCompilerMetrics
-
updateClassLoaderMetrics
-
updateBufferMetrics
-
updateThreadMetrics
-
updatePoolMetrics
-
updateMemoryMetrics
-
updateDiscMetrics
-
updateCpuMetrics
-
updateNanoMetrics
-
updateSystemMetrics
-
updateOs
-
updateArch
-
updateJavaVersion
-
estimateMetricCacheSize
public long estimateMetricCacheSize() -
prometheusPath
-
dynamoPath
-
influx
-
wavefront
-