Documentation ¶
Index ¶
- type Collector
- func (c *Collector) Collect(scs []stats.SampleContainer)
- func (c *Collector) GetRequiredSystemTags() lib.TagSet
- func (c *Collector) HandleMetric(m *stats.Metric)
- func (c *Collector) HasSeenMetric(str string) bool
- func (c *Collector) Init() error
- func (c *Collector) Link() string
- func (c *Collector) Run(ctx context.Context)
- func (c *Collector) SetRunStatus(status int)
- 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) Collect ¶
func (c *Collector) Collect(scs []stats.SampleContainer)
func (*Collector) GetRequiredSystemTags ¶ added in v0.20.0
GetRequiredSystemTags returns which sample tags are needed by this collector
func (*Collector) HandleMetric ¶
func (*Collector) HasSeenMetric ¶
func (*Collector) SetRunStatus ¶ added in v0.21.1
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 *stats.SampleTags `json:"tags"` }
func NewJSONSample ¶
func NewJSONSample(sample *stats.Sample) *JSONSample
Click to show internal directories.
Click to hide internal directories.