Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct { LabelLayout *labelLayout // contains filtered or unexported fields }
func GetEncoder ¶
func (*Encoder) Encode ¶
func (e *Encoder) Encode(req *controller.SyncPrometheusRequest) (*controller.SyncPrometheusResponse, error)
type ORGEncoders ¶
type ORGEncoders struct {
// contains filtered or unexported fields
}
func GetORGEncoders ¶
func GetORGEncoders() *ORGEncoders
func (*ORGEncoders) Init ¶
func (e *ORGEncoders) Init(ctx context.Context, cfg prometheuscfg.Config)
func (*ORGEncoders) NewEncoderAndInitIfNotExist ¶
func (e *ORGEncoders) NewEncoderAndInitIfNotExist(orgID int) (*Encoder, error)
func (*ORGEncoders) Stop ¶
func (e *ORGEncoders) Stop()
Click to show internal directories.
Click to hide internal directories.