prometheus

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

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

Stats define prometheus stats.Stats implementor

func New

func New(namespace string, baseTags stats.Tags) *Stats

New creates new prometheus stats

func (*Stats) Add

func (s *Stats) Add(metric string, value float64, opt stats.Option) error

Add implements Add stats interface

func (*Stats) Gauge

func (s *Stats) Gauge(metric string, value float64, opt stats.Option) error

Gauge implements Gauge stats interface

func (*Stats) Histogram

func (s *Stats) Histogram(metric string, value float64, opt stats.Option) error

Histogram implements Histogram stats interface

func (*Stats) Increment

func (s *Stats) Increment(metric string, opt stats.Option) error

Increment implements Increment stats interface

Jump to

Keyboard shortcuts

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