config

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Features

type Features struct {
	ExternalCorePluginsEnabled bool
	SkipHostEnvVarsEnabled     bool
}

Features contains the feature toggles used for the plugin management system.

type OpenTelemetryCfg

type OpenTelemetryCfg struct {
	Address     string
	Propagation string

	Sampler          string
	SamplerParam     float64
	SamplerRemoteURL string
}

OpenTelemetryCfg contains the OpenTelemetry address and propagation config values. This is used to export the OpenTelemetry (OTLP) config without exposing the whole *setting.Cfg.

type PluginManagementCfg

type PluginManagementCfg struct {
	DevMode bool

	PluginsPath string

	PluginSettings       setting.PluginSettings
	PluginsAllowUnsigned []string
	DisablePlugins       []string
	ForwardHostEnvVars   []string

	PluginsCDNURLTemplate string

	GrafanaComAPIURL string

	GrafanaAppURL string

	Features Features

	AngularSupportEnabled  bool
	HideAngularDeprecation []string
}

PluginManagementCfg is the configuration for the plugin management system. It includes settings which are used to configure different components of plugin management.

func NewPluginManagementCfg

func NewPluginManagementCfg(devMode bool, pluginsPath string, pluginSettings setting.PluginSettings, pluginsAllowUnsigned []string,
	pluginsCDNURLTemplate string, appURL string, features Features, angularSupportEnabled bool,
	grafanaComAPIURL string, disablePlugins []string, hideAngularDeprecation []string, forwardHostEnvVars []string,
) *PluginManagementCfg

NewPluginManagementCfg returns a new PluginManagementCfg.

type Tracing

type Tracing struct {
	OpenTelemetry OpenTelemetryCfg
}

func (Tracing) IsEnabled

func (t Tracing) IsEnabled() bool

IsEnabled returns true if OTLP tracing is enabled (address set)

Jump to

Keyboard shortcuts

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