Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func NewCluster ¶
func NewCluster(c Config, d Diagnostic) (*Cluster, error)
type Config ¶
type Config struct { Enabled bool `toml:"enabled" override:"enabled"` ID string `toml:"id" override:"id"` Region string `toml:"region" override:"region"` AccessKey string `toml:"access-key" override:"access-key"` SecretKey string `toml:"secret-key" override:"secret-key,redact"` Profile string `toml:"profile" override:"profile"` RefreshInterval toml.Duration `toml:"refresh-interval" override:"refresh-interval"` Port int `toml:"port" override:"port"` }
Config is EC2 service discovery configuration
func (Config) Prom ¶
func (e Config) Prom(c *config.ScrapeConfig)
Prom writes the prometheus configuration for discoverer into ScrapeConfig
func (Config) PromConfig ¶
func (e Config) PromConfig() *config.EC2SDConfig
PromConfig returns the prometheus configuration for this discoverer
type Diagnostic ¶
type Diagnostic interface { scraper.Diagnostic WithClusterContext(region string) Diagnostic }
type Service ¶
type Service struct { Configs []Config // contains filtered or unexported fields }
Service is the ec2 discovery and autoscale service
func NewService ¶
NewService creates a new unopened 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.