Documentation ¶
Index ¶
- func LintCamelCase(mf *dto.MetricFamily) []error
- func LintCounter(mf *dto.MetricFamily) []error
- func LintDuplicateMetric(mf *dto.MetricFamily) []error
- func LintHelp(mf *dto.MetricFamily) []error
- func LintHistogramSummaryReserved(mf *dto.MetricFamily) []error
- func LintMetricTypeInName(mf *dto.MetricFamily) []error
- func LintMetricUnits(mf *dto.MetricFamily) []error
- func LintReservedChars(mf *dto.MetricFamily) []error
- func LintUnitAbbreviations(mf *dto.MetricFamily) []error
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.