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.
Click to show internal directories.
Click to hide internal directories.