Documentation
¶
Index ¶
- type Collector
- func (c *Collector) Collect(samples []stats.Sample)
- 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)
- 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) GetRequiredSystemTags ¶ added in v0.20.0
GetRequiredSystemTags returns which sample tags are needed by this collector
func (*Collector) HandleMetric ¶
func (*Collector) HasSeenMetric ¶
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.