collector

package
v0.0.0-...-df0b2f8 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Config *config.Common
	Logger *logger.Logger
}

type Console

type Console Collector

func (*Console) Send

func (c *Console) Send(metrics metric.Metrics) (err error)

type Metric

type Metric struct {
	Name  string      `json:"name"`
	Type  string      `json:"type"`
	Value interface{} `json:"value"`
}

type Metrics

type Metrics struct {
	TS     string `json:"ts"`
	Labels struct {
		Host string `json:"host"`
	} `json:"labels"`
	Metrics []Metric `json:"metrics"`
}

type Yandex

type Yandex Collector

func (*Yandex) Send

func (c *Yandex) Send(metrics metric.Metrics, parameters map[string]interface{}) (err error)

Jump to

Keyboard shortcuts

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