prometheus

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteBatch

func DeleteBatch[MT any](resourceType string, db *mysql.DB, items []MT) error

func GetMasterGRPCConn

func GetMasterGRPCConn() (*grpc.ClientConn, error)

Types

type Cleaner

type Cleaner struct {
	// contains filtered or unexported fields
}

func GetCleaner

func GetCleaner() *Cleaner

func (*Cleaner) Init

func (c *Cleaner) Init(ctx context.Context, cfg prometheuscfg.Config)

func (*Cleaner) Start

func (c *Cleaner) Start(sCtx context.Context) error

func (*Cleaner) Stop

func (c *Cleaner) Stop()

type GRPCURL

type GRPCURL struct{}

type LabelSynchronizer

type LabelSynchronizer struct {
	Synchronizer
	// contains filtered or unexported fields
}

func (*LabelSynchronizer) GetStatsdCounter

func (s *LabelSynchronizer) GetStatsdCounter() *statsd.PrometheusLabelIDsCounter

type ORGLabelSynchronizers

type ORGLabelSynchronizers struct {
	// contains filtered or unexported fields
}

func NewORGLabelSynchronizer

func NewORGLabelSynchronizer() (*ORGLabelSynchronizers, error)

func (*ORGLabelSynchronizers) GetStatsdCounter

func (*ORGLabelSynchronizers) Sync

type PrometheusManager

type PrometheusManager struct {
	Encoders           *encoder.ORGEncoders
	SynchronizerCaches *cache.ORGCaches
	Clear              *Cleaner
}

func GetSingleton

func GetSingleton() *PrometheusManager

type Synchronizer

type Synchronizer struct {
	// contains filtered or unexported fields
}

type Version

type Version struct {
	// contains filtered or unexported fields
}

func GetVersion

func GetVersion() *Version

func (*Version) Get

func (v *Version) Get() uint32

func (*Version) Refresh

func (v *Version) Refresh() error

Directories

Path Synopsis
service

Jump to

Keyboard shortcuts

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