vertx / io.vertx.micrometer / MetricsService

MetricsService

interface MetricsService

The metrics service mainly allows to return a snapshot of measured objects. This service is derived and adapted from MetricsService in the vertx-dropwizard-metrics module.

Author
Nick Scavelli

Author
Joel Takvorian

Functions

create

open static fun create(measured: Measured): MetricsService

Creates a metric service for a given Measured object.

getBaseName

abstract fun getBaseName(): String

getMetricsSnapshot

abstract fun getMetricsSnapshot(): JsonObject

Will return the metrics that correspond with the measured object, null if no metrics is available.

abstract fun getMetricsSnapshot(baseName: String): JsonObject

Will return the metrics that begins with the baseName, null if no metrics is available.

metricsNames

abstract fun metricsNames(): MutableSet<String>