config

package
v0.23.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Unit       string  `yaml:"unit"`
	Type       string  `yaml:"type"`
	Min        int     `yaml:"min"`
	Max        int     `yaml:"max"`
	Multiplier float64 `yaml:"multiplier"`
}

type Config

type Config struct {
	MetricsName string   `yaml:"metrics_name"`
	Metrics     []Metric `yaml:"metrics"`
}

func ParseConfig

func ParseConfig(configBytes []byte) (*Config, error)

type Metric

type Metric struct {
	Name     string   `yaml:"name"`
	Category string   `yaml:"category"`
	Gadget   string   `yaml:"gadget"`
	Type     string   `yaml:"type"`
	Field    string   `yaml:"field,omitempty"`
	Labels   []string `yaml:"labels,omitempty"`
	Selector []string `yaml:"selector,omitempty"`
	Bucket   Bucket   `yaml:"bucket,omitempty"`
}

Jump to

Keyboard shortcuts

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