core

package
v3.11.0-beta1+incompat... Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: Apache-2.0 Imports: 82 Imported by: 0

Documentation

Overview

Package core contains the central frame of the agent that hooks up the various subsystems.

Index

Constants

This section is empty.

Variables

View Source
var VersionLine string

VersionLine should be populated by the startup logic to contain version information that can be reported in diagnostics.

Functions

func Startup

func Startup(configPath string) (context.CancelFunc, <-chan struct{})

Startup the agent. Returns a function that can be called to shutdown the agent, as well as a channel that will be notified when the agent has shutdown.

func Status

func Status(configPath string) ([]byte, error)

Status reads the text from the diagnostic socket and returns it if available.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

Agent is what hooks up observers, monitors, and the datapoint writer.

func NewAgent

func NewAgent() *Agent

NewAgent creates an unconfigured agent instance

func (*Agent) DiagnosticText

func (a *Agent) DiagnosticText() string

DiagnosticText returns a simple textual output of the agent's status

func (*Agent) InternalMetrics

func (a *Agent) InternalMetrics() []*datapoint.Datapoint

InternalMetrics aggregates internal metrics from subcomponents and returns a list of datapoints that represent the instaneous state of the agent

Directories

Path Synopsis
common
Package config contains configuration structures and related helper logic for all agent components.
Package config contains configuration structures and related helper logic for all agent components.
sources
Package sources contains all of the config source logic.
Package sources contains all of the config source logic.
sources/vault
Package vault contains the logic for using Vault as a remote config source How to use auth methods with Vault Go client: https://groups.google.com/forum/#!msg/vault-tool/cS7J2KbAwZg/7pu6PYSRAAAJ
Package vault contains the logic for using Vault as a remote config source How to use auth methods with Vault Go client: https://groups.google.com/forum/#!msg/vault-tool/cS7J2KbAwZg/7pu6PYSRAAAJ
sources/zookeeper
Package zookeeper contains the logic for using Zookeeper as a config source.
Package zookeeper contains the logic for using Zookeeper as a config source.
Package dpfilters has logic describing the filtering of unwanted metrics.
Package dpfilters has logic describing the filtering of unwanted metrics.
Package hostid contains methods that can be called upon agent start up to determine host-specific values that uniquely identify a particular host, particularly ids that can be used to correlate metrics coming from this host to other metrics generated elsewhere, such as AWS CloudWatch metrics.
Package hostid contains methods that can be called upon agent start up to determine host-specific values that uniquely identify a particular host, particularly ids that can be used to correlate metrics coming from this host to other metrics generated elsewhere, such as AWS CloudWatch metrics.
Package propfilters has logic describing the filtering of unwanted properties.
Package propfilters has logic describing the filtering of unwanted properties.
Package services has service endpoint types.
Package services has service endpoint types.
Package writer contains the SignalFx writer.
Package writer contains the SignalFx writer.

Jump to

Keyboard shortcuts

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