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.