targetallocator

package
v0.110.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	confighttp.ClientConfig `mapstructure:",squash"`
	Interval                time.Duration         `mapstructure:"interval"`
	CollectorID             string                `mapstructure:"collector_id"`
	HTTPSDConfig            *PromHTTPSDConfig     `mapstructure:"http_sd_config"`
	HTTPScrapeConfig        *PromHTTPClientConfig `mapstructure:"http_scrape_config"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

type Manager

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

func NewManager

func NewManager(set receiver.Settings, cfg *Config, promCfg *promconfig.Config, enableNativeHistograms bool) *Manager

func (*Manager) Shutdown

func (m *Manager) Shutdown()

func (*Manager) Start

func (m *Manager) Start(ctx context.Context, host component.Host, sm *scrape.Manager, dm *discovery.Manager) error

type PromHTTPClientConfig

type PromHTTPClientConfig commonconfig.HTTPClientConfig

func (*PromHTTPClientConfig) Unmarshal

func (cfg *PromHTTPClientConfig) Unmarshal(componentParser *confmap.Conf) error

func (*PromHTTPClientConfig) Validate

func (cfg *PromHTTPClientConfig) Validate() error

type PromHTTPSDConfig

type PromHTTPSDConfig promHTTP.SDConfig

PromHTTPSDConfig is a redeclaration of promHTTP.SDConfig because we need custom unmarshaling as prometheus "config" uses `yaml` tags.

func (*PromHTTPSDConfig) Unmarshal

func (cfg *PromHTTPSDConfig) Unmarshal(componentParser *confmap.Conf) error

Jump to

Keyboard shortcuts

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