Documentation ¶
Overview ¶
Package promlint provides a linter for Prometheus metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Linter ¶
type Linter struct {
// contains filtered or unexported fields
}
A Linter is a Prometheus metrics linter. It identifies issues with metric names, types, and metadata, and reports them to the caller.
func New ¶
New creates a new Linter that reads an input stream of Prometheus metrics in the Prometheus text exposition format.
func NewWithMetricFamilies ¶
func NewWithMetricFamilies(mfs []*dto.MetricFamily) *Linter
NewWithMetricFamilies creates a new Linter that reads from a slice of MetricFamily protobuf messages.
Click to show internal directories.
Click to hide internal directories.