Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var DefaultEC2SDConfig = EC2Arguments{ Port: 80, RefreshInterval: 60 * time.Second, HTTPClientConfig: config.DefaultHTTPClientConfig, }
      View Source
      
  var DefaultLightsailSDConfig = LightsailArguments{ Port: 80, RefreshInterval: 60 * time.Second, HTTPClientConfig: config.DefaultHTTPClientConfig, }
DefaultLightsailSDConfig is the default Lightsail SD configuration.
Functions ¶
func NewLightsail ¶
New creates a new discovery.lightsail component.
Types ¶
type EC2Arguments ¶
type EC2Arguments struct {
	Endpoint        string            `alloy:"endpoint,attr,optional"`
	Region          string            `alloy:"region,attr,optional"`
	AccessKey       string            `alloy:"access_key,attr,optional"`
	SecretKey       alloytypes.Secret `alloy:"secret_key,attr,optional"`
	Profile         string            `alloy:"profile,attr,optional"`
	RoleARN         string            `alloy:"role_arn,attr,optional"`
	RefreshInterval time.Duration     `alloy:"refresh_interval,attr,optional"`
	Port            int               `alloy:"port,attr,optional"`
	Filters         []*EC2Filter      `alloy:"filter,block,optional"`
	HTTPClientConfig config.HTTPClientConfig `alloy:",squash"`
}
    EC2Arguments is the configuration for EC2 based service discovery.
func (EC2Arguments) Convert ¶
func (args EC2Arguments) Convert() *promaws.EC2SDConfig
func (*EC2Arguments) SetToDefault ¶
func (args *EC2Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
func (*EC2Arguments) Validate ¶
func (args *EC2Arguments) Validate() error
Validate implements syntax.Validator.
type LightsailArguments ¶
type LightsailArguments struct {
	Endpoint         string                  `alloy:"endpoint,attr,optional"`
	Region           string                  `alloy:"region,attr,optional"`
	AccessKey        string                  `alloy:"access_key,attr,optional"`
	SecretKey        alloytypes.Secret       `alloy:"secret_key,attr,optional"`
	Profile          string                  `alloy:"profile,attr,optional"`
	RoleARN          string                  `alloy:"role_arn,attr,optional"`
	RefreshInterval  time.Duration           `alloy:"refresh_interval,attr,optional"`
	Port             int                     `alloy:"port,attr,optional"`
	HTTPClientConfig config.HTTPClientConfig `alloy:",squash"`
}
    LightsailArguments is the configuration for AWS Lightsail based service discovery.
func (LightsailArguments) Convert ¶
func (args LightsailArguments) Convert() *promaws.LightsailSDConfig
func (*LightsailArguments) SetToDefault ¶
func (args *LightsailArguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
func (*LightsailArguments) Validate ¶
func (args *LightsailArguments) Validate() error
Validate implements syntax.Validator.
 Click to show internal directories. 
   Click to hide internal directories.