Documentation ¶
Index ¶
- type Collector
- func (c *Collector) Collect(samples []stats.Sample)
- func (c *Collector) HandleMetric(m *stats.Metric)
- func (c *Collector) HasSeenMetric(str string) bool
- func (c *Collector) Init() error
- func (c *Collector) IsReady() bool
- func (c *Collector) MakeConfig() interface{}
- func (c *Collector) Run(ctx context.Context)
- func (c *Collector) String() string
- type Envelope
- type JSONSample
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func (*Collector) HandleMetric ¶
func (*Collector) HasSeenMetric ¶
func (*Collector) MakeConfig ¶ added in v0.16.0
func (c *Collector) MakeConfig() interface{}
type Envelope ¶
type Envelope struct { Type string `json:"type"` Data interface{} `json:"data"` Metric string `json:"metric,omitempty"` }
func WrapMetric ¶
func WrapSample ¶
type JSONSample ¶
type JSONSample struct { Time time.Time `json:"time"` Value float64 `json:"value"` Tags map[string]string `json:"tags"` }
func NewJSONSample ¶
func NewJSONSample(sample *stats.Sample) *JSONSample
Click to show internal directories.
Click to hide internal directories.