Documentation ¶
Overview ¶
Package nri uses Docker API information and sampled containers and presents it in a format that is accepted by the New Relic Infrastructure Agent
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerSampler ¶
type ContainerSampler struct {
// contains filtered or unexported fields
}
ContainerSampler invokes the metrics sampling and processing for all the existing containers, and populates the integration execution information with the exported metrics
func NewSampler ¶
func NewSampler(fetcher raw.Fetcher, docker raw.DockerClient, config config.ArgumentList) (*ContainerSampler, error)
NewSampler returns a ContainerSampler instance.
func (*ContainerSampler) SampleAll ¶
func (cs *ContainerSampler) SampleAll(ctx context.Context, i *integration.Integration) error
SampleAll populates the integration of the argument with metrics and labels from all the containers in the system running and non-running
Click to show internal directories.
Click to hide internal directories.