Documentation ¶
Overview ¶
Package registry holds a map of all metrics registered by the process.
This map is global and it is populated during init() time, when individual metrics are defined.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Global = NewRegistry()
)
Functions ¶
func ValidateMetricFieldName ¶
ValidateMetricFieldName validates a metric field name.
func ValidateMetricName ¶
ValidateMetricName validates the provided metric name. * if the provided name starts with "/", validate it as is; * otherwise prepend monitor.MetricNamePrefix to it then validate.
Types ¶
Click to show internal directories.
Click to hide internal directories.