metrics

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsInterface

type MetricsInterface interface {
	Record(store, metric string, value float64)
	RecordFromCodec(codec codec.CodecInterface)
}

MetricsInterface represents the metrics interface for all available providers

type Prometheus

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

func NewPrometheus

func NewPrometheus(service string) *Prometheus

func (*Prometheus) Record

func (m *Prometheus) Record(store, metric string, value float64)

func (*Prometheus) RecordFromCodec

func (m *Prometheus) RecordFromCodec(codec codec.CodecInterface)

Jump to

Keyboard shortcuts

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