telemetry

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricPrometheus

type MetricPrometheus struct {
	// contains filtered or unexported fields
}

func NewPrometheusMetrics

func NewPrometheusMetrics(cfg MetricsPrometheusConfig) *MetricPrometheus

func (*MetricPrometheus) Init

func (*MetricPrometheus) Start

func (t *MetricPrometheus) Start() error

func (*MetricPrometheus) Stop

func (t *MetricPrometheus) Stop() error

type MetricStd

type MetricStd struct {
	// contains filtered or unexported fields
}

func NewMetricStd

func NewMetricStd(cfg MetricStdConfig) *MetricStd

func (*MetricStd) Init

func (t *MetricStd) Init(app interfaces.IService) error

func (*MetricStd) Start

func (t *MetricStd) Start() error

func (*MetricStd) Stop

func (t *MetricStd) Stop() error

type MetricStdConfig

type MetricStdConfig struct {
	Name     string        `yaml:"name"`
	Interval time.Duration `yaml:"interval"`
}

type MetricsPrometheusConfig

type MetricsPrometheusConfig struct {
	Name string `yaml:"name"`
	Port string `yaml:"port"`
}

Jump to

Keyboard shortcuts

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