prometheus

package
v0.0.0-...-dfb87fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPromEncoder

func NewPromEncoder(seriesLimit int) extensions.Encoder

Types

type Encoder

type Encoder struct {
	SeriesLimit int
}

func (*Encoder) EncodeBatchV1

func (p *Encoder) EncodeBatchV1(logGroups []*protocol.LogGroup) ([][]byte, error)

func (*Encoder) EncodeBatchV2

func (p *Encoder) EncodeBatchV2(groupEventsSlice []*models.PipelineGroupEvents) ([][]byte, error)

func (*Encoder) EncodeV1

func (p *Encoder) EncodeV1(logGroups *protocol.LogGroup) ([][]byte, error)

func (*Encoder) EncodeV2

func (p *Encoder) EncodeV2(groupEvents *models.PipelineGroupEvents) ([][]byte, error)

type Option

type Option struct {
	SeriesLimit int // config for prometheus encoder
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL