ocagent

package
v0.0.0-...-53e5711 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package ocagent adds the ability to export all telemetry to an ocagent. This keeps the complie time dependencies to zero and allows the agent to have the exporters needed for telemetry aggregation and viewing systems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(config *Config) export.Exporter

Connect creates a process specific exporter with the specified serviceName and the address of the ocagent to which it will upload its telemetry.

Types

type Config

type Config struct {
	Start   time.Time
	Host    string
	Process uint32
	Client  *http.Client
	Service string
	Address string
	Rate    time.Duration
}

func Discover

func Discover() *Config

Discover finds the local agent to export to, it will return nil if there is not one running. TODO: Actually implement a discovery protocol rather than a hard coded address

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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