metrics

package
v0.0.0-...-5ed304f Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 6 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
}

func InitClient

func InitClient(port int, enableProfiling bool) *Client

func (*Client) AddCounter

func (c *Client) AddCounter(name string, value float64, labels ...string)

func (*Client) AddHandler

func (c *Client) AddHandler(path string, handler http.HandlerFunc)

func (*Client) DecrementGauge

func (c *Client) DecrementGauge(name string, labels ...string)

func (*Client) IncrementCounter

func (c *Client) IncrementCounter(name string, labels ...string)

func (*Client) IncrementGauge

func (c *Client) IncrementGauge(name string, labels ...string)

func (*Client) NewCounter

func (c *Client) NewCounter(namespace, name, env, help string, labels ...string) error

func (*Client) NewGauge

func (c *Client) NewGauge(namespace, name, env, help string, labels ...string) error

func (*Client) NewHistogram

func (c *Client) NewHistogram(namespace, name, env, help string, labels ...string) error

func (*Client) NewSummary

func (c *Client) NewSummary(namespace, name, env, help string, labels ...string) error

func (*Client) ObserveHistogram

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

func (*Client) ObserveSummary

func (c *Client) ObserveSummary(name string, value float64, labels ...string)

func (*Client) Server

func (c *Client) Server() *http.Server

func (*Client) SetGauge

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

Jump to

Keyboard shortcuts

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