collection

package
v0.0.100-dev Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

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

Collection handles the communication with Grafana Alloy, and ensures that subscribed instance received updates to rules. For each tenant and scope a new hub is created.

func New

func New(cfg Config, bucket objstore.Bucket, logger log.Logger) *Collection

type Config

type Config struct {
	Enabled           bool   `yaml:"enabled"             category:"experimental"`
	PyroscopeURL      string `yaml:"pyroscope_url"       category:"experimental"` // required to be set when enabled is true
	AlloyTemplatePath string `yaml:"alloy_template_path" category:"experimental"`
}

func (*Config) RegisterFlags

func (cfg *Config) RegisterFlags(fs *flag.FlagSet)

func (*Config) Validate

func (cfg *Config) Validate() error

Jump to

Keyboard shortcuts

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