Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCollector ¶
RegisterCollector adds a Metadata Collector to the catalog
Types ¶
type Collector ¶
type Collector interface {
Send(s *serializer.Serializer) error
}
Collector is anything capable to collect and send metadata payloads through the forwarder. A Metadata Collector normally uses a Metadata Provider to fill the payload.
type HostCollector ¶
type HostCollector struct{}
HostCollector fills and sends the old metadata payload used in the Agent v5
func (*HostCollector) Send ¶
func (hp *HostCollector) Send(s *serializer.Serializer) error
Send collects the data needed and submits the payload
type Payload ¶
Payload is an interface shared by the output of the newer metadata providers. Right now this interface simply satisfies the Protobuf interface.
type ResourcesCollector ¶
type ResourcesCollector struct{}
ResourcesCollector sends the old metadata payload used in the Agent v5
func (*ResourcesCollector) Send ¶
func (rp *ResourcesCollector) Send(s *serializer.Serializer) error
Send collects the data needed and submits the payload
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler takes care of sending metadata at specific time intervals
func NewScheduler ¶
func NewScheduler(s *serializer.Serializer, hostname string) *Scheduler
NewScheduler builds and returns a new Metadata Scheduler
func (*Scheduler) AddCollector ¶
AddCollector schedules a Metadata Collector at the given interval