checkUnitName
Validates a metric unit name according to Prometheus naming rules.
Parameters
unit
The unit name to check.
Throws
if the unit name is invalid.
Validates a metric unit name according to Prometheus naming rules.
The unit name to check.
if the unit name is invalid.