Documentation ¶
Index ¶
- type Client
- func (m *Client) Count(name string, value float64, labels ...string)
- func (m *Client) ObserveHistogram(name string, value float64, labels ...string)
- func (m *Client) RegisterCounter(name string, help string, labels ...string)
- func (m *Client) RegisterGauge(name string, help string, labels ...string)
- func (m *Client) RegisterHistogram(name string, help string, buckets []float64, labels ...string)
- func (m *Client) SetGauge(name string, value float64, labels ...string)
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 (*Client) ObserveHistogram ¶
ObserveHistogram is observes histogram metrics
func (*Client) RegisterCounter ¶
RegisterCounter is registers counter metrics
func (*Client) RegisterGauge ¶
RegisterGauge is registers gauge metrics
func (*Client) RegisterHistogram ¶
RegisterHistogram is registers histogram metrics
Click to show internal directories.
Click to hide internal directories.