Uses of Class
io.prometheus.metrics.model.snapshots.Unit
Packages that use Unit
-
Uses of Unit in io.prometheus.metrics.core.metrics
Methods in io.prometheus.metrics.core.metrics with parameters of type UnitModifier and TypeMethodDescriptionThrows anUnsupportedOperationException
because Info metrics cannot have a unit. -
Uses of Unit in io.prometheus.metrics.model.snapshots
Fields in io.prometheus.metrics.model.snapshots declared as UnitModifier 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
Methods in io.prometheus.metrics.model.snapshots that return UnitMethods in io.prometheus.metrics.model.snapshots with parameters of type UnitModifier 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
.Constructors in io.prometheus.metrics.model.snapshots with parameters of type Unit