MCPcopy
hub / github.com/grafana/dskit / Config

Struct Config

runtimeconfig/manager.go:38–51  ·  view source on GitHub ↗

Config holds the config for an Manager instance. It holds config related to loading per-tenant config.

Source from the content-addressed store, hash-verified

36// Config holds the config for an Manager instance.
37// It holds config related to loading per-tenant config.
38type Config struct {
39 ReloadPeriod time.Duration `yaml:"period" category:"advanced"`
40 // LoadPath contains the path to the runtime config files or HTTP URLs.
41 // Requires a non-empty value
42 LoadPath flagext.StringSliceCSV `yaml:"file"`
43 Preprocessor Preprocessor `yaml:"-"`
44 Loader Loader `yaml:"-"`
45
46 // Configurations related to fetching runtime configurations from HTTP URLs rather than local files.
47 HTTPClientTimeout time.Duration `yaml:"http_client_timeout" category:"advanced"`
48 HTTPClientClusterValidation clusterutil.ClusterValidationConfig `yaml:"http_client_cluster_validation" category:"advanced"`
49 // HTTPClientDisableKeepAlives disables HTTP keep-alives for the runtime config HTTP client.
50 HTTPClientDisableKeepAlives bool `yaml:"http_client_disable_keep_alives" category:"advanced"`
51}
52
53// RegisterFlagsWithPrefix registers flags under the specified prefix, which could be empty.
54// If a non-empty prefix is provided, it's expected to end with a dot.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected