metrics

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusCollectorFunc

type PrometheusCollectorFunc func(ctx context.Context) (string, prometheus.Metric)

func GetInfo

func GetInfo(dir string) PrometheusCollectorFunc

type PrometheusMetricsService

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

func NewPrometheusMetricsService

func NewPrometheusMetricsService(url, token string) (*PrometheusMetricsService, error)

func (*PrometheusMetricsService) AddMetrics

func (p *PrometheusMetricsService) AddMetrics(fns ...PrometheusCollectorFunc)

func (*PrometheusMetricsService) Send

type Service

type Service interface {
	Send(ctx context.Context)
}

Service is a metrics service

Jump to

Keyboard shortcuts

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