azure

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	Timespan:              "PT1M",
	MetricNameTemplate:    "azure_{type}_{metric}_{aggregation}_{unit}",
	MetricHelpTemplate:    "Azure metric {metric} for {type} with aggregation {aggregation} as {unit}",
	IncludedResourceTags:  []string{"owner"},
	AzureCloudEnvironment: "azurecloud",
}

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Subscriptions            []string `river:"subscriptions,attr"`
	ResourceGraphQueryFilter string   `river:"resource_graph_query_filter,attr,optional"`
	ResourceType             string   `river:"resource_type,attr"`
	Metrics                  []string `river:"metrics,attr"`
	MetricAggregations       []string `river:"metric_aggregations,attr,optional"`
	Timespan                 string   `river:"timespan,attr,optional"`
	IncludedDimensions       []string `river:"included_dimensions,attr,optional"`
	IncludedResourceTags     []string `river:"included_resource_tags,attr,optional"`
	MetricNamespace          string   `river:"metric_namespace,attr,optional"`
	MetricNameTemplate       string   `river:"metric_name_template,attr,optional"`
	MetricHelpTemplate       string   `river:"metric_help_template,attr,optional"`
	AzureCloudEnvironment    string   `river:"azure_cloud_environment,attr,optional"`
}

func (*Arguments) Convert

func (a *Arguments) Convert() *azure_exporter.Config

func (*Arguments) SetToDefault

func (a *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

func (*Arguments) Validate

func (a *Arguments) Validate() error

Validate implements river.Validator.

Jump to

Keyboard shortcuts

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