checkMetricLabelName

Validates a metric label name according to Prometheus naming rules.

Label names must match the regular expression [a-zA-Z_][a-zA-Z0-9_]* and cannot start with double underscores (__).

Parameters

labelName

The label name to check.

Throws

if the label name is invalid or reserved.