config

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalMetricsConfig

type ExternalMetricsConfig struct {
	Rules []MetricRule `yaml:"rules"`
}

func FromFile

func FromFile(filename string) (*ExternalMetricsConfig, error)

func FromYAML

func FromYAML(contents []byte) (*ExternalMetricsConfig, error)

FromYAML loads the configuration from a blob of YAML.

type MetricRule

type MetricRule struct {

	// Query specifies a Wavefront ts query
	Query string `yaml:"query"`

	// The unique name to assign to this metric rule
	Name string `yaml:"name"`
}

MetricRule describes rules for transforming Wavefront metrics to/from external metrics API resources.

Jump to

Keyboard shortcuts

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