Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sample ¶
func (*Sample) MarshalToSizedBuffer ¶
type TimeSeries ¶
TimeSeries represents samples and labels for a single time series.
func MustParsePromMetrics ¶ added in v1.97.7
func MustParsePromMetrics(s string, offsetMsecs int64) []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.
func ResetTimeSeries ¶ added in v1.35.4
func ResetTimeSeries(tss []TimeSeries) []TimeSeries
ResetTimeSeries clears all the GC references from tss and returns an empty tss ready for further use.
func (*TimeSeries) MarshalToSizedBuffer ¶
func (m *TimeSeries) MarshalToSizedBuffer(dst []byte) (int, error)
func (*TimeSeries) Size ¶
func (m *TimeSeries) Size() (n int)
type WriteRequest ¶
type WriteRequest struct {
Timeseries []TimeSeries
}
func (*WriteRequest) MarshalProtobuf ¶ added in v1.97.0
func (wr *WriteRequest) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf marshals wr to dst and returns the result.
func (*WriteRequest) MarshalToSizedBuffer ¶
func (m *WriteRequest) MarshalToSizedBuffer(dst []byte) (int, error)
func (*WriteRequest) Size ¶
func (m *WriteRequest) Size() (n int)
Click to show internal directories.
Click to hide internal directories.