Versions in this module Expand all Collapse all v0 v0.3.1 May 20, 2020 GO-2024-3170 GO-2024-3170: Grafana Agent (Flow mode) on Windows has Unquoted Search Path or Element vulnerability in github.com/grafana/agent v0.3.0 May 13, 2020 GO-2024-3170 GO-2024-3170: Grafana Agent (Flow mode) on Windows has Unquoted Search Path or Element vulnerability in github.com/grafana/agent Changes in this version + var DefaultConfig = Config + var DefaultRelabelConfigs = []*relabel.Config + var DefaultRemoteWriteConfig = RemoteWriteConfig + var ErrInstanceStoppedNormally = errors.New("instance shutdown normally") + func MarshalConfig(c *Config, sanitize bool) (string, error) + type BasicAuth struct + Password string + PasswordFile string + Username string + func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error + type Config struct + HostFilter bool + Name string + RemoteFlushDeadline time.Duration + RemoteWrite []*RemoteWriteConfig + ScrapeConfigs []*config.ScrapeConfig + WALTruncateFrequency time.Duration + WriteStaleOnShutdown bool + func UnmarshalConfig(r io.Reader) (*Config, error) + func (c *Config) ApplyDefaults(global *config.GlobalConfig) + func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error + func (c *Config) Validate() error + type DiscoveredGroups = map[string][]*targetgroup.Group + func FilterGroups(in DiscoveredGroups, host string) DiscoveredGroups + type GroupChannel = <-chan DiscoveredGroups + type HTTPClientConfig struct + BasicAuth *BasicAuth + BearerToken string + BearerTokenFile string + ProxyURL config_util.URL + TLSConfig config_util.TLSConfig + func (c *HTTPClientConfig) PrometheusConfig() config_util.HTTPClientConfig + func (c *HTTPClientConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + func (c *HTTPClientConfig) Validate() error + type HostFilter struct + func NewHostFilter(host string) *HostFilter + func (f *HostFilter) Run(syncCh GroupChannel) + func (f *HostFilter) Stop() + func (f *HostFilter) SyncCh() GroupChannel + type Instance struct + func New(globalCfg config.GlobalConfig, cfg Config, walDir string, logger log.Logger) (*Instance, error) + func (i *Instance) Config() Config + func (i *Instance) Err() error + func (i *Instance) Stop() + func (i *Instance) Wait() error + type MetricValueCollector struct + func NewMetricValueCollector(g prometheus.Gatherer, match string) *MetricValueCollector + func (vc *MetricValueCollector) GetValues(label string, labelValues ...string) ([]float64, error) + type RemoteWriteConfig struct + HTTPClientConfig HTTPClientConfig + MetadataConfig config.MetadataConfig + Name string + QueueConfig config.QueueConfig + RemoteTimeout model.Duration + URL *config_util.URL + WriteRelabelConfigs []*relabel.Config + func (c *RemoteWriteConfig) PrometheusConfig() *config.RemoteWriteConfig + func (c *RemoteWriteConfig) Sanitize() + func (c *RemoteWriteConfig) UnmarshalYAML(unmarshal func(interface{}) error) error