v1

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(config []byte) (*v2.Config, error)

Types

type Config

type Config struct {
	// For sections that don't differ between v1 and v2, we reference v2 directly here.
	Input   v2.InputConfig  `yaml:",omitempty"`
	Grok    v2.GrokConfig   `yaml:",omitempty"`
	Metrics MetricsConfig   `yaml:",omitempty"`
	Server  v2.ServerConfig `yaml:",omitempty"`
}

type Label

type Label struct {
	GrokFieldName   string `yaml:"grok_field_name,omitempty"`
	PrometheusLabel string `yaml:"prometheus_label,omitempty"`
}

type MetricConfig

type MetricConfig struct {
	Type       string              `yaml:",omitempty"`
	Name       string              `yaml:",omitempty"`
	Help       string              `yaml:",omitempty"`
	Match      string              `yaml:",omitempty"`
	Value      string              `yaml:",omitempty"`
	Cumulative bool                `yaml:",omitempty"`
	Buckets    []float64           `yaml:",flow,omitempty"`
	Quantiles  map[float64]float64 `yaml:",flow,omitempty"`
	Labels     []Label             `yaml:",omitempty"`
}

type MetricsConfig

type MetricsConfig []MetricConfig

Jump to

Keyboard shortcuts

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