metrics

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricWriter

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

MetricWriter writes metrics to Google Cloud Monitoring.

func NewMetricWriter

func NewMetricWriter(ctx context.Context, nodeID string) (*MetricWriter, error)

NewMetricWriter creates a new *MetricWriter.

func (*MetricWriter) Close added in v0.0.5

func (w *MetricWriter) Close() error

Close closes all connections held by the *MetricWriter.

func (*MetricWriter) Peers

func (w *MetricWriter) Peers(ctx context.Context, peerCount uint64) error

Peers writes the peerCount to metrics.

Jump to

Keyboard shortcuts

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