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 ¶
GetLoaderErrors returns the check loader errors
func IsCheckAllowed ¶
func IsCheckAllowed(checkName string, cfg pkgconfigmodel.Reader) bool
IsCheckAllowed returns true if the check is allowed. When not in basic mode, all checks are allowed (returns true). When in basic mode, only checks in the allowed list or starting with "custom_" are permitted. Note: Legacy key (allowed_additional_checks) is aliased to mode-specific keys in config.go via applyInfrastructureModeOverrides.
Types ¶
type CheckScheduler ¶
type CheckScheduler struct {
// contains filtered or unexported fields
}
CheckScheduler is the check scheduler
func InitCheckScheduler ¶
func InitCheckScheduler(collector option.Option[collector.Component], senderManager sender.SenderManager, logReceiver option.Option[integrations.Component], tagger tagger.Component, filterStore filter.Component) *CheckScheduler
InitCheckScheduler creates and returns a check scheduler
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 |
|---|---|
|
Package aggregator provides an API for checks run through Cgo
|
Package aggregator provides an API for checks run through Cgo |
|
Package check contains the interface for the check.
|
Package check contains the interface for the check. |
|
id
Package id contains the ID for a check
|
Package id contains the ID for a check |
|
stats
Package stats contains the stats for a check
|
Package stats contains the stats for a check |
|
defaults
module
|
|
|
Package corechecks provides common functionality for core checks.
|
Package corechecks provides common functionality for core checks. |
|
agentprofiling
Package agentprofiling is a core check that can generate a flare with profiles when the core agent's memory or CPU usage exceeds a certain threshold.
|
Package agentprofiling is a core check that can generate a flare with profiles when the core agent's memory or CPU usage exceeds a certain threshold. |
|
cloud/hostinfo
Package hostinfo implements a check that collects host-local information from cloud provider metadata services (e.g., preemption events for spot instances).
|
Package hostinfo implements a check that collects host-local information from cloud provider metadata services (e.g., preemption events for spot instances). |
|
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/csi_driver
Package csidriver implements the CSI driver core check.
|
Package csidriver implements the CSI driver core check. |
|
containers/generic
Package generic implements the container check.
|
Package generic implements the container check. |
|
containers/kata
Package kata implements the kata_containers check.
|
Package kata implements the kata_containers check. |
|
discovery
Package discovery provides the discovery check for reporting warnings from log discovery providers.
|
Package discovery provides the discovery check for reporting warnings from log discovery providers. |
|
ebpf
Package ebpf contains all the ebpf-based checks.
|
Package ebpf contains all the ebpf-based checks. |
|
ebpf/noisyneighbor
Package noisyneighbor contains the Noisy Neighbor check
|
Package noisyneighbor contains the Noisy Neighbor check |
|
ebpf/oomkill
Package oomkill contains the OOMKill check.
|
Package oomkill contains the OOMKill 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/noisyneighbor/model
Package model contains the model for the noisy neighbor check
|
Package model contains the model for the noisy neighbor 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/integrationtests
Package integrationtests contains integration tests for the GPU core check that require real GPU hardware to run.
|
Package integrationtests contains integration tests for the GPU core check that require real GPU hardware to run. |
|
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). |
|
gpu/spec
Package spec holds structures to parse the metric specification for the GPU check.
|
Package spec holds structures to parse the metric specification for the GPU check. |
|
gpu/spec/allowlist
command
Package main updates the billing allowlist with GPU metrics from the shared spec.
|
Package main updates the billing allowlist with GPU metrics from the shared spec. |
|
gpu/spec/metadata
command
Package main updates integrations-core GPU metadata from the shared spec.
|
Package main updates integrations-core GPU metadata from the shared spec. |
|
gpu/spec/metrics-validator
command
Package main validates emitted GPU metrics against the shared spec.
|
Package main validates emitted GPU metrics against the shared spec. |
|
net
Package net provides core checks for networking
|
Package net provides core checks for networking |
|
net/network
Package network implements the network check.
|
Package network implements the network check. |
|
net/networkv2
Package networkv2 provides a check for network connection and socket statistics
|
Package networkv2 provides a check for network connection and socket statistics |
|
net/ntp
Package ntp implements the ntp check.
|
Package ntp implements the ntp check. |
|
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 |
|
network-devices/versa
Package versa implements NDM Versa corecheck
|
Package versa implements NDM Versa corecheck |
|
network-devices/versa/client
Package client implements a Versa API client
|
Package client implements a Versa API client |
|
network-devices/versa/payload
Package payload implement processing of Versa api responses
|
Package payload implement processing of Versa api responses |
|
network-devices/versa/report
Package report implements Versa metadata and metrics reporting
|
Package report implements Versa metadata and metrics reporting |
|
networkconfigmanagement
Package networkconfigmanagement defines the agent core check for retrieving network device configurations (stub implementation)
|
Package networkconfigmanagement defines the agent core check for retrieving network device configurations (stub implementation) |
|
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/kubeletconfig
Package kubeletconfig is used `for the orchestrator kubelet_config check
|
Package kubeletconfig is used `for the orchestrator kubelet_config 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 |
|
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/fetch
Package fetch contains functions to fetch data from network devices using SNMP
|
Package fetch contains functions to fetch data from network devices using SNMP |
|
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/battery
Package battery implements the battery check.
|
Package battery implements the battery check. |
|
system/cpu/cpu
Package cpu implements the cpu check.
|
Package cpu implements the cpu check. |
|
system/cpu/load
Package load implements the cpu load check.
|
Package load implements the cpu load check. |
|
system/disk/disk
Package disk implements the disk check.
|
Package disk implements the disk check. |
|
system/disk/diskv2
Package diskv2 provides Disk Check.
|
Package diskv2 provides Disk Check. |
|
system/disk/io
Package io implements the io check.
|
Package io implements the io check. |
|
system/filehandles
Package filehandles defines the file_handle core check
|
Package filehandles defines the file_handle core check |
|
system/memory
Package memory implements the memory check.
|
Package memory implements the memory check. |
|
system/uptime
Package uptime implements the uptime check.
|
Package uptime implements the uptime 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. |
|
system/windowscertificate
Package windowscertificate implements a windows certificate check.
|
Package windowscertificate implements a windows certificate check. |
|
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. |
|
Package loaders contains the logic to sort the loaders
|
Package loaders contains the logic to sort the loaders |
|
Package python implements the layer to interact with the Python interpreter.
|
Package python implements the layer to interact with the Python interpreter. |
|
Package runner implements the runner component of the collector.
|
Package runner implements the runner component of the collector. |
|
expvars
Package expvars contains the logic to collect the expvars.
|
Package expvars contains the logic to collect the expvars. |
|
tracker
Package tracker contains the logic to track the running checks.
|
Package tracker contains the logic to track the running checks. |
|
Package scheduler contains the logic to schedule the checks.
|
Package scheduler contains the logic to schedule the checks. |
|
sharedlibrary
|
|
|
sharedlibraryimpl
Package sharedlibrarycheck implements the layer to interact shared library-based checks
|
Package sharedlibrarycheck implements the layer to interact shared library-based checks |
|
Package worker implements the worker component of the collector.
|
Package worker implements the worker component of the collector. |