Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultArguments = Arguments{ Environment: azure.PublicCloud.Name, Port: 80, RefreshInterval: 5 * time.Minute, FollowRedirects: true, EnableHTTP2: true, }
Functions ¶
Types ¶
type Arguments ¶
type Arguments struct { Environment string `alloy:"environment,attr,optional"` Port int `alloy:"port,attr,optional"` SubscriptionID string `alloy:"subscription_id,attr,optional"` OAuth *OAuth `alloy:"oauth,block,optional"` ManagedIdentity *ManagedIdentity `alloy:"managed_identity,block,optional"` RefreshInterval time.Duration `alloy:"refresh_interval,attr,optional"` ResourceGroup string `alloy:"resource_group,attr,optional"` ProxyConfig *config.ProxyConfig `alloy:",squash"` FollowRedirects bool `alloy:"follow_redirects,attr,optional"` EnableHTTP2 bool `alloy:"enable_http2,attr,optional"` TLSConfig config.TLSConfig `alloy:"tls_config,block,optional"` }
func (*Arguments) Convert ¶
func (a *Arguments) Convert() *prom_discovery.SDConfig
func (*Arguments) SetToDefault ¶
func (a *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type ManagedIdentity ¶
type ManagedIdentity struct {
ClientID string `alloy:"client_id,attr"`
}
Click to show internal directories.
Click to hide internal directories.