Documentation ¶
Index ¶
- Constants
- func NewLogger(cfg config.MainConfig, isSupervisor bool) log.Logger
- func NewOTLPClientFactory(cc otlp.ClientConfig) otlp.StorageClientFactory
- func NewTailer(ctx context.Context, scfg SidecarConfig) (*tail.Tailer, error)
- func StartComponents(ctx context.Context, scfg SidecarConfig, tailer tail.WalTailer, ...) error
- func StartLeaderElection(ctx context.Context, cfg *SidecarConfig) error
- func StartTelemetry(scfg SidecarConfig, defaultSvcName string, isSuper bool, ...) *telemetry.Telemetry
- type ShutdownFunc
- type SidecarConfig
Constants ¶
View Source
const (
IDKey = "prometheus_replica"
)
Variables ¶
This section is empty.
Functions ¶
func NewOTLPClientFactory ¶
func NewOTLPClientFactory(cc otlp.ClientConfig) otlp.StorageClientFactory
func StartComponents ¶ added in v0.22.0
func StartLeaderElection ¶ added in v0.26.0
func StartLeaderElection(ctx context.Context, cfg *SidecarConfig) error
func StartTelemetry ¶
Types ¶
type ShutdownFunc ¶
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 }
Click to show internal directories.
Click to hide internal directories.