Skip to main content

SanitizeMetricName

SanitizeMetricName ensures the generates metric name is compatible with the underlying prometheus library.

def SanitizeMetricName(
name: string
) - > string

SanitizeMetricName ensures the generates metric name is compatible with the underlying prometheus library.

Parameters

NameTypeDescription
namestringThe metric name to sanitize.

Returns

TypeDescription
stringThe sanitized metric name.