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.
Click to show internal directories.
Click to hide internal directories.