internal

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDKey = "prometheus_replica"
)

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(cfg config.MainConfig, isSupervisor bool) log.Logger

func NewOTLPClientFactory

func NewOTLPClientFactory(cc otlp.ClientConfig) otlp.StorageClientFactory

func NewTailer added in v0.22.0

func NewTailer(ctx context.Context, scfg SidecarConfig) (*tail.Tailer, error)

func StartComponents added in v0.22.0

func StartComponents(ctx context.Context, scfg SidecarConfig, tailer tail.WalTailer, startOffset int) error

func StartLeaderElection added in v0.26.0

func StartLeaderElection(ctx context.Context, cfg *SidecarConfig) error

func StartTelemetry

func StartTelemetry(scfg SidecarConfig, defaultSvcName string, isSuper bool, externalLabels labels.Labels) *telemetry.Telemetry

Types

type ShutdownFunc

type ShutdownFunc func(context.Context)

type SidecarConfig added in v0.22.0

type SidecarConfig struct {
	ClientFactory otlp.StorageClientFactory
	Monitor       *prometheus.Monitor
	Logger        log.Logger

	// InstanceId is a unique identifer for this process.
	InstanceId    string
	Matchers      [][]*labels.Matcher
	MetricRenames map[string]string
	MetadataCache *metadata.Cache

	FailingReporter common.FailingReporter

	LeaderCandidate leader.Candidate

	config.MainConfig
}

Jump to

Keyboard shortcuts

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