Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Envelope ¶
type Envelope struct { Type string `json:"type"` Data interface{} `json:"data"` Metric string `json:"metric,omitempty"` }
Envelope is the data format we use to export both metrics and metric samples to the JSON file.
func WrapSample ¶
WrapSample is used to package a metric sample in a way that's nice to export to JSON.
type Output ¶
type Output struct { output.SampleBuffer // contains filtered or unexported fields }
Output funnels all passed metrics to an (optionally gzipped) JSON file.
func (*Output) Description ¶
Description returns a human-readable description of the output.
func (*Output) SetThresholds ¶
func (o *Output) SetThresholds(thresholds map[string]stats.Thresholds)
SetThresholds receives the thresholds before the output is Start()-ed.
Click to show internal directories.
Click to hide internal directories.