package validations

import "github.com/prometheus/client_golang/prometheus/testutil/promlint/validations"

Index

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

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.

Source Files

counter_validations.go duplicate_validations.go generic_name_validations.go help_validations.go histogram_validations.go units.go

Version
v1.20.4
Published
Sep 7, 2024
Platform
darwin/amd64
Imports
6 packages
Last checked
4 weeks ago

Tools for package owners.