Uses of Class
io.prometheus.metrics.model.snapshots.Unit
-
Uses of Unit in io.prometheus.metrics.core.metrics
Modifier and TypeMethodDescriptionThrows anUnsupportedOperationException
because Info metrics cannot have a unit. -
Uses of Unit in io.prometheus.metrics.model.snapshots
Modifier and TypeFieldDescriptionstatic final Unit
Unit.AMPERES
static final Unit
Unit.BYTES
static final Unit
Unit.CELSIUS
static final Unit
Unit.GRAMS
static final Unit
Unit.JOULES
static final Unit
Unit.METERS
static final Unit
Unit.RATIO
static final Unit
Unit.SECONDS
static final Unit
Unit.VOLTS
Modifier and TypeMethodDescriptionstatic String
PrometheusNaming.sanitizeMetricName
(String metricName, Unit unit) LikePrometheusNaming.sanitizeMetricName(String)
, but also makes sure that the unit is appended as a suffix if the unit is notnull
.