Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Sugar zap.SugaredLogger
Functions ¶
func DeepFieldsNew ¶
DeepFieldsNew recursively collect full array of metrics from stats
Types ¶
type Client ¶
type Client struct {
// array of metrics
Metrics Metrics
// server address
Address string
// Path to file where mem stats will be saved
MemProfile string
// Exchange mode
ExchangeMode string
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(settings *config.ClientFlags) (*Client, error)
NewClient creates instance of client
func (*Client) PushMetricsJSON ¶
PushMetricsJSON push metrics to server
func (*Client) ReadMetrics ¶
ReadMetrics reads memory stats and send it to queue
func (*Client) ReadSpecificMetrics ¶
ReadSpecificMetrics reads special stats and send it to queue
type Metric ¶
func DeepFields ¶
func DeepFields(iface interface{}) []Metric
DeepFields recursively collect full array of metrics from stats
Click to show internal directories.
Click to hide internal directories.