tracing

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration struct {
	Timer    prometheus.Gauge
	Registry *prometheus.Registry
	Pusher   *push.Pusher
	PushURL  string
	JobName  string
	Begin    time.Time
}

func NewCollector

func NewCollector(pushURL, metricsName, description string) *Duration

func (*Duration) CompleteGathering

func (t *Duration) CompleteGathering() error

func (*Duration) Start

func (t *Duration) Start()

type MetricsGather

type MetricsGather struct {
	Enabled     bool
	PushGateway string
}

func Gatherer

func Gatherer() *MetricsGather

func NewGatherer

func NewGatherer() *MetricsGather

Jump to

Keyboard shortcuts

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