dc

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Overview

Package dc is the dynamic collector

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	MetricPort MetricPort `yaml:"metric_port"`
	MetricPath MetricPath `yaml:"metric_path"`
	Schema     Schema     `yaml:"schema"`
	Rollup     Rollup     `yaml:"rollup"`
	Control    Control    `yaml:"control"`
	Selectors  Selectors  `yaml:"selectors"`
	Type       string     `yaml:"type"`
	Name       string     `yaml:"name"`
	Tags       string     `yaml:"tags"`
	LabelTags  string     `yaml:"label_tags"`
	Disable    bool       `yaml:"disable"`
}

type Collectors

type Collectors struct {
	Collectors []Collector `yaml:"collectors"`
}

type Control

type Control struct {
	Annotation string `yaml:"annotation"`
	Label      string `yaml:"label"`
	Value      string `yaml:"value"`
}

type DC

type DC struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Cluster, parentLogger zerolog.Logger, check *circonus.Check) (*DC, error)

func (*DC) Collect

func (dc *DC) Collect(ctx context.Context, tlsConfig *tls.Config, ts *time.Time)

type MetricPath

type MetricPath struct {
	Annotation string `yaml:"annotation"`
	Label      string `yaml:"label"`
	Value      string `yaml:"value"`
}

type MetricPort

type MetricPort struct {
	Annotation string `yaml:"annotation"`
	Label      string `yaml:"label"`
	Value      string `yaml:"value"`
}

type Rollup added in v0.11.2

type Rollup struct {
	Annotation string `yaml:"annotation"`
	Label      string `yaml:"label"`
	Value      string `yaml:"value"`
}

type Schema added in v0.11.1

type Schema struct {
	Annotation string `yaml:"annotation"`
	Label      string `yaml:"label"`
	Value      string `yaml:"value"`
}

type Selectors

type Selectors struct {
	Label string `yaml:"label"`
	Field string `yaml:"field"`
}

Jump to

Keyboard shortcuts

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