package
2.26.1+incompatible
Repository: https://github.com/universe111/prometheus.git
Documentation: pkg.go.dev

# README

Making changes to textparse lexers

In the rare case that you need to update the textparse lexers, edit promlex.l or openmetricslex.l and then run the following command: golex -o=promlex.l.go promlex.l

Note that you need golex installed: go get -u modernc.org/golex

# Functions

New returns a new parser of the byte slice.
NewOpenMetricsParser returns a new parser of the byte slice.
NewPromParser returns a new parser of the byte slice.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

OpenMetricsParser parses samples from a byte slice of samples in the official OpenMetrics text exposition format.
PromParser parses samples from a byte slice of samples in the official Prometheus text exposition format.

# Interfaces

Parser parses samples from a byte slice of samples in the official Prometheus and OpenMetrics text exposition formats.

# Type aliases

Entry
Entry represents the type of a parsed entry.
MetricType represents metric type values.