Documentation ¶
Overview ¶
Package agent handles Agent entity creation and inventory/metric collection
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectInventory ¶
func CollectInventory(agents []*Agent)
CollectInventory collects inventory data for each Agent entity
func CollectMetrics ¶
func CollectMetrics(agents []*Agent)
CollectMetrics does a metric collect for a group of agents
func CreateAgents ¶
func CreateAgents(client *api.Client, i *integration.Integration, args *args.ArgumentList) (agents []*Agent, leader *Agent, err error)
CreateAgents creates an Agent structure for every Agent member of the LAN cluster
Types ¶
type Agent ¶
Agent represents a Consul agent. It's comprised of the client connected to that agent and the Entity representing it.
func (*Agent) CollectCoreMetrics ¶
func (a *Agent) CollectCoreMetrics(metricSet *metric.Set, gaugeDefs, counterDefs []*metrics.MetricDefinition, timerDefs []*metrics.TimerDefinition) error
CollectCoreMetrics collects metrics for an Agent
Click to show internal directories.
Click to hide internal directories.