azure

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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

func New

func New(opts component.Options, args Arguments) (*discovery.Component, error)

New returns a new instance of a discovery.azure component.

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.

func (*Arguments) Validate

func (a *Arguments) Validate() error

Validate implements syntax.Validator.

type ManagedIdentity

type ManagedIdentity struct {
	ClientID string `alloy:"client_id,attr"`
}

type OAuth

type OAuth struct {
	ClientID     string            `alloy:"client_id,attr"`
	TenantID     string            `alloy:"tenant_id,attr"`
	ClientSecret alloytypes.Secret `alloy:"client_secret,attr"`
}

Jump to

Keyboard shortcuts

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