Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool `toml:"enabled" override:"enabled"` ID string `toml:"id" override:"id"` Port int `toml:"port" override:"port"` SubscriptionID string `toml:"subscription-id" override:"subscription-id"` TenantID string `toml:"tenant-id" override:"tenant-id"` ClientID string `toml:"client-id" override:"client-id"` ClientSecret string `toml:"client-secret" override:"client-secret,redact"` RefreshInterval toml.Duration `toml:"refresh-interval" override:"refresh-interval"` }
Config is a Azure service discovery configuration
func (*Config) Init ¶
func (a *Config) Init()
Init adds the default values for uninitialized configurations
func (Config) Prom ¶
func (a Config) Prom(c *config.ScrapeConfig)
Prom writes the prometheus configuration for discoverer into ScrapeConfig
func (Config) PromConfig ¶
func (a Config) PromConfig() *config.AzureSDConfig
PromConfig returns the prometheus configuration for this discoverer
type Diagnostic ¶ added in v1.4.0
type Diagnostic scraper.Diagnostic
type Service ¶
type Service struct { Configs []Config // contains filtered or unexported fields }
Service is the azure discovery service
func NewService ¶
func NewService(c []Config, r scraper.Registry, d Diagnostic) *Service
NewService creates a new unopened Azure service
func (*Service) TestOptions ¶
func (s *Service) TestOptions() interface{}
TestOptions returns an object that is in turn passed to Test.
Click to show internal directories.
Click to hide internal directories.