agent

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2018 License: MIT Imports: 13 Imported by: 0

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

type Agent struct {
	Client *api.Client
	// contains filtered or unexported fields
}

Agent represents a Consul agent. It's comprised of the client connected to that agent and the Entity representing it.

func NewAgent

func NewAgent(client *api.Client, entity *integration.Entity, ipAddr, datacenter string) *Agent

NewAgent creates a new agent from the given client and Entity

func (*Agent) CollectCoreMetrics

func (a *Agent) CollectCoreMetrics(metricSet *metric.Set, gaugeDefs, counterDefs []*metrics.MetricDefinition, timerDefs []*metrics.TimerDefinition) error

CollectCoreMetrics collects metrics for an Agent

func (*Agent) Name

func (a *Agent) Name() string

Name returns the entity name of the agent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL