validations

package
v1.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LintCamelCase

func LintCamelCase(mf *dto.MetricFamily) []error

LintCamelCase detects metric names and label names written in camelCase.

func LintCounter

func LintCounter(mf *dto.MetricFamily) []error

LintCounter detects issues specific to counters, as well as patterns that should only be used with counters.

func LintHelp

func LintHelp(mf *dto.MetricFamily) []error

LintHelp detects issues related to the help text for a metric.

func LintHistogramSummaryReserved

func LintHistogramSummaryReserved(mf *dto.MetricFamily) []error

LintHistogramSummaryReserved detects when other types of metrics use names or labels reserved for use by histograms and/or summaries.

func LintMetricTypeInName

func LintMetricTypeInName(mf *dto.MetricFamily) []error

LintMetricTypeInName detects when metric types are included in the metric name.

func LintMetricUnits

func LintMetricUnits(mf *dto.MetricFamily) []error

LintMetricUnits detects issues with metric unit names.

func LintReservedChars

func LintReservedChars(mf *dto.MetricFamily) []error

LintReservedChars detects colons in metric names.

func LintUnitAbbreviations

func LintUnitAbbreviations(mf *dto.MetricFamily) []error

LintUnitAbbreviations detects abbreviated units in the metric name.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL