alloycli

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 61 Imported by: 0

Documentation

Overview

Package alloycli is the entrypoint for Grafana Alloy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterService added in v1.8.0

func NewClusterService(
	opts ClusterOptions,
	getDiscoveryFn func(options discovery.Options) (discovery.DiscoverFn, error),
) (*cluster.Service, error)

NewClusterService is visible to make it easier to test clustering e2e.

func Run

func Run()

Run runs the Alloy CLI. It is expected to be called directly from the main function.

Types

type ClusterOptions added in v1.8.0

type ClusterOptions struct {
	Log     log.Logger
	Metrics prometheus.Registerer
	Tracer  trace.TracerProvider

	EnableClustering       bool
	MinimumClusterSize     int
	MinimumSizeWaitTimeout time.Duration
	NodeName               string
	AdvertiseAddress       string
	ListenAddress          string
	JoinPeers              []string
	DiscoverPeers          string
	RejoinInterval         time.Duration
	AdvertiseInterfaces    []string
	ClusterMaxJoinPeers    int
	ClusterName            string
	EnableTLS              bool
	TLSCAPath              string
	TLSCertPath            string
	TLSKeyPath             string
	TLSServerName          string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳