alloycli

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 63 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 Command added in v1.13.0

func Command() *cobra.Command

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 RunCommand added in v1.13.0

func RunCommand() *cobra.Command

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