metricsbridge

package
v10.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricsHandler

func MetricsHandler() http.Handler

func NewCommand

func NewCommand() *cobra.Command

NewCommand returns the cobra command for "metricsbridge".

Types

type MetricsConfig

type MetricsConfig struct {
	Interval           time.Duration `json:"intervalNanoseconds,omitempty"`
	PrometheusEndpoint string        `json:"prometheusEndpoint,omitempty"`
	StatsdSocket       string        `json:"statsdSocket,omitempty"`

	Queries []struct {
		Name  string `json:"name,omitempty"`
		Query string `json:"query,omitempty"`
	} `json:"queries,omitempty"`

	Account   string `json:"account,omitempty"`
	Namespace string `json:"namespace,omitempty"`

	Region            string `json:"region,omitempty"`
	SubscriptionID    string `json:"subscriptionId,omitempty"`
	ResourceGroupName string `json:"resourceGroupName,omitempty"`
	ResourceName      string `json:"resourceName,omitempty"`

	Token              string `json:"token,omitempty"`
	InsecureSkipVerify bool   `json:"insecureSkipVerify,omitempty"`
	// contains filtered or unexported fields
}

MetricsConfig stores the configuration of the metricsbridge application

Jump to

Keyboard shortcuts

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