validations

package
v1.20.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

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 LintDuplicateMetric added in v1.20.0

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

LintDuplicateMetric detects duplicate metric.

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 the metric type is 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