collector

package
v0.0.0-...-234771b Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 9

README

package collector

This package is responsible for providing any resource and functionality needed in a check life cycle: create a check instance, schedule a check, running a check are all operations implemented in this package or one of the subpackages.

For further details, please refer to the specific READMEs:

Documentation

Overview

Package collector provides the implementation of the collector

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChecksByNameForConfigs

func GetChecksByNameForConfigs(checkName string, configs []integration.Config) []check.Check

GetChecksByNameForConfigs returns checks matching name for passed in configs

func GetLoaderErrors

func GetLoaderErrors() map[string]map[string]string

GetLoaderErrors returns the check loader errors

func InitPython

func InitPython(_ ...string)

InitPython is a no-op when the build tag is not set

Types

type CheckScheduler

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

CheckScheduler is the check scheduler

func InitCheckScheduler

func InitCheckScheduler(collector optional.Option[collector.Component], senderManager sender.SenderManager, logReceiver optional.Option[integrations.Component], tagger tagger.Component) *CheckScheduler

InitCheckScheduler creates and returns a check scheduler

func (*CheckScheduler) AddLoader

func (s *CheckScheduler) AddLoader(loader check.Loader)

AddLoader adds a new Loader that AutoConfig can use to load a check.

func (*CheckScheduler) GetChecksFromConfigs

func (s *CheckScheduler) GetChecksFromConfigs(configs []integration.Config, populateCache bool) []check.Check

GetChecksFromConfigs gets all the check instances for given configurations optionally can populate the configToChecks cache

func (*CheckScheduler) Schedule

func (s *CheckScheduler) Schedule(configs []integration.Config)

Schedule schedules configs to checks

func (*CheckScheduler) Stop

func (s *CheckScheduler) Stop()

Stop is a stub to satisfy the scheduler interface

func (*CheckScheduler) Unschedule

func (s *CheckScheduler) Unschedule(configs []integration.Config)

Unschedule unschedules checks matching configs

Directories

Path Synopsis
id
defaults Module
cluster
Package cluster provides core checks for cluster level checks, used by the Datadog Cluster Agent.
Package cluster provides core checks for cluster level checks, used by the Datadog Cluster Agent.
cluster/ksm
Package ksm implements the Kubernetes State Core cluster check.
Package ksm implements the Kubernetes State Core cluster check.
cluster/ksm/customresources
Package customresources implements custom resources that are not yet supported in the kube-state-metrics library or that were supported at some point, but now they're not, and we still want to keep backwards compatibility.
Package customresources implements custom resources that are not yet supported in the kube-state-metrics library or that were supported at some point, but now they're not, and we still want to keep backwards compatibility.
containerimage
Package containerimage implements the container image check.
Package containerimage implements the container image check.
containerlifecycle
Package containerlifecycle implements the container lifecycle check.
Package containerlifecycle implements the container lifecycle check.
containers
Package containers provides core checks for containers and orchestrators
Package containers provides core checks for containers and orchestrators
containers/generic
Package generic implements the container check.
Package generic implements the container check.
ebpf
Package ebpf contains all the ebpf-based checks.
Package ebpf contains all the ebpf-based checks.
ebpf/oomkill
Package oomkill contains the OOMKill check.
Package oomkill contains the OOMKill check.
ebpf/probe/ebpfcheck
Package ebpfcheck is the system-probe side of the eBPF check
Package ebpfcheck is the system-probe side of the eBPF check
ebpf/probe/ebpfcheck/model
Package model is the types for the eBPF check
Package model is the types for the eBPF check
ebpf/probe/oomkill
Package oomkill is the system-probe side of the OOM Kill check
Package oomkill is the system-probe side of the OOM Kill check
ebpf/probe/oomkill/model
Package model is the types for the OOM Kill check
Package model is the types for the OOM Kill check
ebpf/probe/tcpqueuelength
Package tcpqueuelength is the system-probe side of the TCP Queue Length check
Package tcpqueuelength is the system-probe side of the TCP Queue Length check
ebpf/probe/tcpqueuelength/model
Package model is the types for the TCP Queue Length check
Package model is the types for the TCP Queue Length check
ebpf/tcpqueuelength
Package tcpqueuelength contains the TCP Queue Length check
Package tcpqueuelength contains the TCP Queue Length check
embed/apm
Package apm provides a stub for the APM check
Package apm provides a stub for the APM check
gpu
Package gpu defines the agent corecheck for the GPU integration
Package gpu defines the agent corecheck for the GPU integration
gpu/model
Package model contains the model for the GPU check, with types shared between the system-probe GPU probe and the gpu core agent check
Package model contains the model for the GPU check, with types shared between the system-probe GPU probe and the gpu core agent check
gpu/nvidia
Package nvidia holds the logic to collect metrics from the NVIDIA Management Library (NVML).
Package nvidia holds the logic to collect metrics from the NVIDIA Management Library (NVML).
net
Package net provides core checks for networking
Package net provides core checks for networking
network-devices/cisco-sdwan
Package ciscosdwan implements NDM Cisco SD-WAN corecheck
Package ciscosdwan implements NDM Cisco SD-WAN corecheck
network-devices/cisco-sdwan/client
Package client implements a Cisco SD-WAN API client
Package client implements a Cisco SD-WAN API client
network-devices/cisco-sdwan/payload
Package payload implement processing of Cisco SD-WAN api responses
Package payload implement processing of Cisco SD-WAN api responses
network-devices/cisco-sdwan/report
Package report implements Cisco SD-WAN metadata and metrics reporting
Package report implements Cisco SD-WAN metadata and metrics reporting
networkpath
Package networkpath defines the agent corecheck for the Network Path integration
Package networkpath defines the agent corecheck for the Network Path integration
nvidia/jetson
Package nvidia provides core checks for Nvidia's jetson device family
Package nvidia provides core checks for Nvidia's jetson device family
oracle
Package systemd provides core checks for oracle
Package systemd provides core checks for oracle
orchestrator
Package orchestrator holds orchestrator checks ourside the cluster agent
Package orchestrator holds orchestrator checks ourside the cluster agent
orchestrator/ecs
Package ecs is used for the orchestrator ECS check
Package ecs is used for the orchestrator ECS check
orchestrator/pod
Package pod is used for the orchestrator pod check
Package pod is used for the orchestrator pod check
sbom
Package sbom provides core checks for SBOM generation
Package sbom provides core checks for SBOM generation
servicediscovery
Package servicediscovery contains the Service Discovery corecheck.
Package servicediscovery contains the Service Discovery corecheck.
servicediscovery/apm
Package apm provides functionality to detect the type of APM instrumentation a service is using.
Package apm provides functionality to detect the type of APM instrumentation a service is using.
servicediscovery/apm/testutil/instrumented
Package main is a go application which use dd-trace-go, in order to test static APM instrumentation detection.
Package main is a go application which use dd-trace-go, in order to test static APM instrumentation detection.
servicediscovery/apm/testutil/instrumented2
Package main is a go application which use dd-trace-go, in order to test static APM instrumentation detection.
Package main is a go application which use dd-trace-go, in order to test static APM instrumentation detection.
servicediscovery/envs
Package envs provides target environment variables of interest.
Package envs provides target environment variables of interest.
servicediscovery/language
Package language provides functionality to detect the programming language for a given process.
Package language provides functionality to detect the programming language for a given process.
servicediscovery/language/reader
Package reader provides utils around io.Reader.
Package reader provides utils around io.Reader.
servicediscovery/model
Package model contains types for service discovery.
Package model contains types for service discovery.
servicediscovery/module
Package module implements a system-probe Module interface for the discovery component.
Package module implements a system-probe Module interface for the discovery component.
servicediscovery/module/testutil/fake_server
Package main is a simple TCP server which accepts any command line arguments, in order to test service discovery which uses the command line for detection.
Package main is a simple TCP server which accepts any command line arguments, in order to test service discovery which uses the command line for detection.
servicediscovery/servicetype
Package servicetype provides functionality to detect the service type for a given process.
Package servicetype provides functionality to detect the service type for a given process.
servicediscovery/usm
Package usm provides functionality to detect the most appropriate service name for a process.
Package usm provides functionality to detect the most appropriate service name for a process.
snmp
Package snmp contains the SNMP corecheck integration
Package snmp contains the SNMP corecheck integration
snmp/internal/common
Package common contains constants and basic structures used in snmp integration
Package common contains constants and basic structures used in snmp integration
snmp/internal/configvalidation
Package configvalidation contains validation and enrichment functions
Package configvalidation contains validation and enrichment functions
snmp/internal/profile
Package profile contains profile related code
Package profile contains profile related code
snmp/internal/report
Package report is a package that reports metrics for the device check
Package report is a package that reports metrics for the device check
snmp/status
Package status contains the SNMP Profiles status provider
Package status contains the SNMP Profiles status provider
system
Package system provides core checks for OS-level system metrics
Package system provides core checks for OS-level system metrics
system/filehandles
Package filehandles defines the file_handle core check
Package filehandles defines the file_handle core check
system/wincrashdetect
Package wincrashdetect implements the windows crash detection on windows.
Package wincrashdetect implements the windows crash detection on windows.
system/wincrashdetect/probe
Package probe parses Windows crash dumps.
Package probe parses Windows crash dumps.
systemd
Package systemd provides core checks for systemd
Package systemd provides core checks for systemd
telemetry
Package telemetry is a check to collect and send limited subset of internal telemetry from the core agent.
Package telemetry is a check to collect and send limited subset of internal telemetry from the core agent.
Package externalhost implements the External Host Tags metadata provider.
Package externalhost implements the External Host Tags metadata provider.

Jump to

Keyboard shortcuts

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