Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DataDog/datadog-agent
/ functions
Functions
32,574 in github.com/DataDog/datadog-agent
⨍
Functions
32,574
◇
Types & classes
5,280
↳
Endpoints
25
↓ 5 callers
Function
makeConfigArray
makeConfigArray flattens a map of configs into a slice. Creating a new slice allows for thread-safe usage by other external, as long as the field valu
pkg/clusteragent/clusterchecks/helpers.go:28
↓ 5 callers
Function
makeConfigMapData
(v interface{})
pkg/clusteragent/custommetrics/store_configmap_test.go:48
↓ 5 callers
Function
makeProcStatsWithPerm
(pid int32)
pkg/process/checks/sysprobe_stats_test.go:20
↓ 5 callers
Function
makeProcess
(cmdline []string, comm string)
pkg/languagedetection/detector_test.go:14
↓ 5 callers
Function
makeTxnFromRequestString
(s string)
pkg/network/protocols/http/model_linux_test.go:13
↓ 5 callers
Method
mapOverLoadedConfigs
mapOverLoadedConfigs calls the given function with a map of all loaded configs (those which have been scheduled but not unscheduled). The call is made
pkg/autodiscovery/configmgr.go:47
↓ 5 callers
Function
markText
(doc, from, to, options, type)
cmd/agent/gui/views/private/js/codemirror.js:5833
↓ 5 callers
Method
marshalEvent
nolint:deadcode,unused
pkg/security/tests/module_tester.go:1165
↓ 5 callers
Function
measureForScrollbars
(cm)
cmd/agent/gui/views/private/js/codemirror.js:3499
↓ 5 callers
Function
mergeProcWithSysprobeStats
mergeProcWithSysprobeStats takes a process by PID map and fill the stats from system probe into the processes in the map
pkg/process/checks/process.go:611
↓ 5 callers
Function
metaVersion
(rawMeta json.RawMessage)
pkg/config/remote/uptane/util.go:54
↓ 5 callers
Function
moveOnce
(boundToLine)
cmd/agent/gui/views/private/js/codemirror.js:8552
↓ 5 callers
Function
n
()
cmd/agent/gui/views/private/js/purify.min.js:2
↓ 5 callers
Function
newAcErrorStats
newAcErrorStats returns an instance holding autoconfig errors stats
pkg/autodiscovery/stats.go:36
↓ 5 callers
Function
newCollectorErrors
newCollectorErrors returns an instance holding autoconfig errors stats
pkg/collector/stats.go:22
↓ 5 callers
Function
newConntrackCache
(maxSize int, orphanTimeout time.Duration)
pkg/network/netlink/conntracker.go:310
↓ 5 callers
Function
newDelayedFxInvocation
newDelayedFxInvocation creates a new delayedFxInvocation wrapping the given function. The given function can have any number of arguments that will b
pkg/util/fxutil/args.go:29
↓ 5 callers
Method
newElection
newElection creates an election. If `namespace`/`election` does not exist, it is created.
pkg/util/kubernetes/apiserver/leaderelection/leaderelection_engine.go:137
↓ 5 callers
Function
newEvent
()
pkg/collector/corechecks/containerlifecycle/event.go:45
↓ 5 callers
Function
newEventProcessor
(conf *config.AgentConfig)
pkg/trace/agent/agent.go:643
↓ 5 callers
Function
newExistCache
(path string)
pkg/ebpf/ksyms.go:25
↓ 5 callers
Function
newFakeHorizontalPodAutoscaler
(ns, name string, metrics []autoscaler.MetricSpec)
pkg/clusteragent/externalmetrics/autoscaler_watcher_test.go:116
↓ 5 callers
Function
newFakeKubeletPod
(namespace, name, uid, ip string)
pkg/util/kubernetes/apiserver/services_kubelet_test.go:266
↓ 5 callers
Function
newFakePod
(namespace, name, uid, ip string)
pkg/util/kubernetes/apiserver/metadata_controller_test.go:483
↓ 5 callers
Function
newFileRegistry
()
pkg/network/usm/utils/file_registry_test.go:173
↓ 5 callers
Function
newFlushCountStats
(name string)
pkg/aggregator/aggregator.go:78
↓ 5 callers
Function
newHTTP2Encoder
(http2Payloads map[http.Key]*http.RequestStats)
pkg/network/encoding/http2.go:25
↓ 5 callers
Function
newHashedTagsFromSlice
(tags []string)
pkg/tagset/hashed_tags_pvt.go:23
↓ 5 callers
Function
newKafkaEncoder
(kafkaPayloads map[kafka.Key]*kafka.RequestStat)
pkg/network/encoding/kafka.go:34
↓ 5 callers
Function
newMetricFilterFromConfig
newMetricFilterFromConfig creates a new container filter, sourcing patterns from the pkg/config options, to be used only for metrics
pkg/util/containers/filter.go:251
↓ 5 callers
Function
newMockLanguagePatcher
(mockClient dynamic.Interface, mockStore *workloadmeta.MockStore)
pkg/clusteragent/languagedetection/patcher_test.go:28
↓ 5 callers
Function
newOffsetManager
(numCPUS int)
pkg/network/protocols/events/batch_offsets.go:32
↓ 5 callers
Function
newProcessProbe
(config config.Reader, options ...procutil.Option)
pkg/process/checks/process_probe.go:15
↓ 5 callers
Function
newPromServicesProvider
(checks []*types.PrometheusCheck, api ServiceAPI, collectEndpoints bool)
pkg/autodiscovery/providers/prometheus_services.go:123
↓ 5 callers
Function
newReleasesStore
()
pkg/collector/corechecks/cluster/helm/releases_store.go:24
↓ 5 callers
Function
newSafeReader
()
pkg/logs/tailers/docker/reader.go:25
↓ 5 callers
Function
newStore
newStore creates a store
pkg/autodiscovery/store.go:67
↓ 5 callers
Function
newStringInterner
(maxSize int, internerID int)
comp/dogstatsd/server/intern.go:58
↓ 5 callers
Function
newTestOutputMountInfo
(name string)
pkg/gohai/filesystem/filesystem_nix_test.go:269
↓ 5 callers
Function
newTransactionalStore
(db *bbolt.DB)
pkg/config/remote/uptane/transactional_store.go:40
↓ 5 callers
Function
newWorkerWithOptions
newWorkerWithOptions returns an instance of a `Worker` with an override for the `aggregator.GetDefaultSender()`. The purpose of this pass-through is t
pkg/collector/worker/worker.go:93
↓ 5 callers
Function
nextMessage
(packet *[]byte, eolTermination bool)
comp/dogstatsd/server/server.go:560
↓ 5 callers
Function
nlmsgAlign
#define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
pkg/network/netlink/align.go:25
↓ 5 callers
Function
nodeToEvaluator
(obj interface{}, opts *Opts, state *State)
pkg/security/secl/compiler/eval/eval.go:383
↓ 5 callers
Function
normalizePackageName
(packageName string)
cmd/agent/subcommands/integrations/command.go:223
↓ 5 callers
Method
numEmptyRunners
()
pkg/clusteragent/clusterchecks/checks_distribution.go:175
↓ 5 callers
Function
optEnableDebugLogging
()
pkg/util/winutil/eventlog/subscription/subscription_test.go:31
↓ 5 callers
Method
option
option generates the fx.Option value to include in an fx.App that will provide the argument values.
pkg/util/fxutil/args.go:45
↓ 5 callers
Function
parseBytesToInt
(buf []byte, base int, bitSize int)
pkg/process/procutil/process_linux.go:568
↓ 5 callers
Function
parseFloat64
the std API does not have methods to do []byte => float parsing we use this unsafe trick to avoid having to allocate one string for every parsed float
comp/dogstatsd/server/parse.go:249
↓ 5 callers
Method
parseTags
(rawTags []byte)
comp/dogstatsd/server/parse.go:87
↓ 5 callers
Function
parse_major_versions
(major_versions)
tasks/release.py:894
↓ 5 callers
Function
payloadsEqual
payloadsEqual validates that the traces in from are the same as the ones in to.
cmd/trace-agent/test/testsuite/traces_test.go:189
↓ 5 callers
Method
pipelineStatsProxyHandler
pipelineStatsProxyHandler returns a new HTTP handler which will proxy requests to the pipeline stats intake.
pkg/trace/api/pipeline_stats.go:48
↓ 5 callers
Method
pollOrgStatus
()
pkg/config/remote/service/service.go:337
↓ 5 callers
Function
printYaml
(w io.Writer, data []byte)
pkg/flare/config_check.go:102
↓ 5 callers
Method
processEvents
(events []types.EntityEvent, replace bool)
pkg/tagger/remote/tagstore.go:36
↓ 5 callers
Method
processNewConfig
processNewConfig store (in template cache) and resolves a given config, returning the changes to be made.
pkg/autodiscovery/autoconfig.go:247
↓ 5 callers
Method
processNewService
processNewService takes a service, tries to match it against templates and triggers scheduling events if it finds a valid config for it.
pkg/autodiscovery/autoconfig.go:415
↓ 5 callers
Function
profilingEndpoints
profilingEndpoints returns the profiling intake urls and their corresponding api keys based on agent configuration. The main endpoint is always return
pkg/trace/api/profiles.go:36
↓ 5 callers
Method
put
(bucketName string, path string, data []byte)
pkg/config/remote/uptane/transactional_store.go:193
↓ 5 callers
Method
ratesByService
ratesByService returns a map of service signatures mapping to the rates identified using the signatures.
pkg/trace/sampler/catalog.go:73
↓ 5 callers
Function
regexFindStringSubmatchMap
regexFindStringSubmatchMap returns a map of strings where the keys are the name of the submatch groups defined in its expressions and the values are t
pkg/collector/corechecks/nvidia/jetson/jetson.go:65
↓ 5 callers
Function
regexSubexpIndex
Only available in Go 15, so implement it here for now
pkg/collector/corechecks/nvidia/jetson/jetson.go:79
↓ 5 callers
Method
registerCollector
RegisterCollector registers a collector
pkg/util/containers/metrics/provider/registry.go:107
↓ 5 callers
Method
releasePayload
releasePayload releases the payload p and records the specified event. The payload should not be used again after a release.
pkg/trace/writer/sender.go:314
↓ 5 callers
Function
release_entry_for
(agent_major_version)
tasks/utils.py:515
↓ 5 callers
Function
removeAbsolutePath
removeAbsolutePath removes the absolute file path that is automatically output by cgo -godefs and replaces it with only the filename
pkg/ebpf/cgo/genpost.go:40
↓ 5 callers
Method
removeOrphans
(now time.Time)
pkg/network/netlink/conntracker.go:392
↓ 5 callers
Method
reportExitCodes
reportExitCodes monitors events for non zero exit codes and sends service checks
pkg/collector/corechecks/containers/docker/events.go:62
↓ 5 callers
Function
requestGenerator
(t *testing.T, targetAddr string, reqBody []byte)
pkg/network/usm/monitor_test.go:841
↓ 5 callers
Method
reset
reset method is only used for testing
pkg/util/cloudproviders/cloudfoundry/cccache_test.go:23
↓ 5 callers
Method
resolve
(pid, tid uint32, inode uint64, useProcFS bool)
pkg/security/resolvers/process/resolver_linux.go:576
↓ 5 callers
Function
revert_kernel_packages
(ctx, kernel_packages_dir, backup_dir)
tasks/kernel_matrix_testing/download.py:134
↓ 5 callers
Method
revision
()
pkg/collector/corechecks/cluster/helm/release.go:46
↓ 5 callers
Function
rmClass
(node, cls)
cmd/agent/gui/views/private/js/codemirror.js:52
↓ 5 callers
Method
run
(t *testing.T)
cmd/manager/auto_exit_noprocess_test.go:23
↓ 5 callers
Method
runRealtime
runRealtime runs the realtime ProcessCheck to collect statistics about the running processes. Underying procutil.Probe is responsible for the actual i
pkg/process/checks/process_rt.go:22
↓ 5 callers
Function
runString
(code string)
rtloader/test/rtloader/rtloader.go:74
↓ 5 callers
Function
sanitizeLabelName
(s string)
pkg/collector/corechecks/cluster/ksm/customresources/utils.go:116
↓ 5 callers
Method
scanNumber
(seenDecimalPoint bool)
pkg/obfuscate/sql_tokenizer.go:733
↓ 5 callers
Method
scanString
(delim rune, kind TokenKind)
pkg/obfuscate/sql_tokenizer.go:786
↓ 5 callers
Function
scrollToCoords
(cm, x, y)
cmd/agent/gui/views/private/js/codemirror.js:3432
↓ 5 callers
Method
seek
seek seeks to the cursor if it is not empty or the end of the journal, returns an error if the operation failed.
pkg/logs/tailers/journald/tailer.go:198
↓ 5 callers
Method
send
(senderFct func(sender StatsTelemetrySender))
pkg/telemetry/stats_telemetry.go:59
↓ 5 callers
Method
sendDistributionCount
(metric string, value float64, hostname string, tags []string, monotonic bool, sender sender.Sender)
pkg/collector/corechecks/containers/kubelet/provider/prometheus/provider.go:285
↓ 5 callers
Function
setBoolValue
(boolName string, value bool)
pkg/security/tests/selinux_test.go:239
↓ 5 callers
Method
setConfigError
setConfigError will safely set the error for a check configuration file
pkg/autodiscovery/stats.go:44
↓ 5 callers
Method
setFirstTraceTags
setFirstTraceTags sets additional tags on the first trace ever processed by the agent, so that we can see that the customer has successfully onboarded
pkg/trace/agent/agent.go:235
↓ 5 callers
Function
setMetricOTLP
setMetricOTLP sets the k/v OTLP attribute pair as a metric on span s.
pkg/trace/api/otlp.go:491
↓ 5 callers
Function
setNumWorkers
setNumWorkers is a helper to set the effective number of workers for a given config.
pkg/config/config.go:1903
↓ 5 callers
Method
setUpToDate
setUpToDate is a thread-safe method to update the upToDate value
pkg/autodiscovery/providers/prometheus_services.go:190
↓ 5 callers
Function
setup
()
pkg/logs/schedulers/ad/scheduler_test.go:21
↓ 5 callers
Function
setup
(proxyHostPort string, originalRuntimeHostPort string, processor invocationlifecycle.InvocationProcessor)
pkg/serverless/proxy/proxy.go:29
↓ 5 callers
Function
setupConfig
(tags []string)
pkg/logs/internal/tag/provider_benchmark_test.go:15
↓ 5 callers
Function
setupDataScrubber
(t *testing.T)
pkg/process/procutil/data_scrubber_test.go:16
↓ 5 callers
Function
setupScrubbing
Set up for scrubbing tests, by temporarily setting Scrubber; this avoids testing the default scrubber's functionality in this module
pkg/util/log/log_test.go:160
↓ 5 callers
Function
setupStatsTracker
(timeFrame time.Duration, bucketSize time.Duration)
pkg/util/statstracker/stats_tracker_test.go:15
↓ 5 callers
Function
shouldIgnore
shouldIgnore resolves symlinks in /var/log/containers in order to use that redirection to validate that we will be reading a file for the correct cont
pkg/logs/launchers/file/provider/file_provider.go:363
↓ 5 callers
Function
skipHttpTransactionProto
(dAtA []byte)
comp/forwarder/defaultforwarder/internal/retry/HttpTransactionProto.pb.go:1401
← previous
next →
3,501–3,600 of 32,574, ranked by callers