metrics

package
v0.0.0-...-be31693 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a struct that manages metrics key: metric name, value: metric

func NewClient

func NewClient() *Client

NewClient is a constructor for Client

func (*Client) Count

func (m *Client) Count(name string, value float64, labels ...string)

Count is increments counter metrics

func (*Client) ObserveHistogram

func (m *Client) ObserveHistogram(name string, value float64, labels ...string)

ObserveHistogram is observes histogram metrics

func (*Client) RegisterCounter

func (m *Client) RegisterCounter(name string, help string, labels ...string)

RegisterCounter is registers counter metrics

func (*Client) RegisterGauge

func (m *Client) RegisterGauge(name string, help string, labels ...string)

RegisterGauge is registers gauge metrics

func (*Client) RegisterHistogram

func (m *Client) RegisterHistogram(name string, help string, buckets []float64, labels ...string)

RegisterHistogram is registers histogram metrics

func (*Client) SetGauge

func (m *Client) SetGauge(name string, value float64, labels ...string)

SetGauge is sets gauge metrics

Jump to

Keyboard shortcuts

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