Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
Config Config
Type string
// ProcessTags is called on a map of all tags for each metric and returns a slice representation
// of those tags that should be sent. No tags are send in case of ProcessTags being null
ProcessTags func(map[string]string) []string
Logger logrus.FieldLogger
// contains filtered or unexported fields
}
Collector sends result data to statsd daemons with the ability to send to datadog as well
func (*Collector) Collect ¶
func (c *Collector) Collect(containers []stats.SampleContainer)
Collect metrics
func (*Collector) GetRequiredSystemTags ¶
func (c *Collector) GetRequiredSystemTags() stats.SystemTagSet
GetRequiredSystemTags Return the required system sample tags for the specific collector
func (*Collector) SetRunStatus ¶
SetRunStatus does nothing in statsd collector
type Config ¶
type Config struct {
Addr null.String `json:"addr,omitempty" envconfig:"ADDR"`
BufferSize null.Int `json:"bufferSize,omitempty" envconfig:"BUFFER_SIZE"`
Namespace null.String `json:"namespace,omitempty" envconfig:"NAMESPACE"`
PushInterval types.NullDuration `json:"pushInterval,omitempty" envconfig:"PUSH_INTERVAL"`
}
Config defines the statsd configuration
Click to show internal directories.
Click to hide internal directories.