Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreIdenticalSeriesFast ¶ added in v1.66.0
AreIdenticalSeriesFast returns true if s1 and s2 contains identical Prometheus series with possible different values.
This function is optimized for speed.
func GetRowsDiff ¶ added in v1.66.0
GetRowsDiff returns rows from s1, which are missing in s2.
The returned rows have default value 0 and have no timestamps.
func MustParsePromMetrics ¶ added in v1.102.15
func MustParsePromMetrics(s string, offsetMsecs int64) []prompbmarshal.TimeSeries
MustParsePromMetrics parses metrics in Prometheus text exposition format from s and returns them.
Metrics must be delimited with newlines.
offsetMsecs is added to every timestamp in parsed metrics.
This function is for testing purposes only. Do not use it in non-test code.
Types ¶
type Rows ¶
type Rows struct { Rows []Row // contains filtered or unexported fields }
Rows contains parsed Prometheus rows.
func (*Rows) Unmarshal ¶
Unmarshal unmarshals Prometheus exposition text rows from s.
s shouldn't be modified while rs is in use.
func (*Rows) UnmarshalWithErrLogger ¶ added in v1.34.0
UnmarshalWithErrLogger unmarshal Prometheus exposition text rows from s.
It calls errLogger for logging parsing errors.
s shouldn't be modified while rs is in use.