discovery

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

README

discovery

-- import "github.com/newrelic/nri-flex/internal/discovery"

Usage

func CreateDynamicContainerConfigs
func CreateDynamicContainerConfigs(containers []types.Container, files []os.FileInfo, path string, ymls *[]load.Config)

CreateDynamicContainerConfigs Creates dynamic configs for each container

func ExecContainerCommand
func ExecContainerCommand(containerID string, command []string) (string, error)

ExecContainerCommand execute command against a container

func FindFlexContainerID
func FindFlexContainerID(read string)

FindFlexContainerID detects if Flex is running within a container and sets the ID

func MakeTimestamp
func MakeTimestamp() int64

MakeTimestamp struct

func Processes
func Processes()

Processes loops through tcp connections and returns the corresponding process and connection information

func Readln
func Readln(r *bufio.Reader) (string, error)

Readln from bufioReader

func Run
func Run(configs *[]load.Config)

Run discover containers

type ProcessNetworkStat
type ProcessNetworkStat struct {
	Name string
	Data string
}

ProcessNetworkStat x

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDynamicContainerConfigs

func CreateDynamicContainerConfigs(containers []types.Container, files []os.FileInfo, path string, ymls *[]load.Config)

CreateDynamicContainerConfigs Creates dynamic configs for each container

func ExecContainerCommand

func ExecContainerCommand(containerID string, command []string) (string, error)

ExecContainerCommand execute command against a container

func FindFlexContainerID

func FindFlexContainerID(read string)

FindFlexContainerID detects if Flex is running within a container and sets the ID

func MakeTimestamp

func MakeTimestamp() int64

MakeTimestamp struct

func Processes

func Processes()

Processes loops through tcp connections and returns the corresponding process and connection information

func Readln

func Readln(r *bufio.Reader) (string, error)

Readln from bufioReader

func Run

func Run(configs *[]load.Config)

Run discover containers

Types

type ProcessNetworkStat

type ProcessNetworkStat struct {
	Name string
	Data string
}

ProcessNetworkStat x

Jump to

Keyboard shortcuts

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