MCPcopy Create free account

hub / github.com/DataDog/datadog-agent / functions

Functions32,574 in github.com/DataDog/datadog-agent

↓ 4 callersFunctionnormalize
(v string, allowDigitStartChar bool)
pkg/trace/traceutil/normalize.go:129
↓ 4 callersFunctionnotify
Utility to send an OS-level notification. Supported on MacOS and Windows.
tasks/libs/pipeline_tools.py:353
↓ 4 callersMethodnotify
It's a very simple implementation of a notify process, but it's enough in our case as we aim at only 1 or 2 observers
pkg/clusteragent/externalmetrics/store.go:175
↓ 4 callersFunctionntpWarning
Tells if the ntp offset may be too large, resulting in metrics from the agent being dropped by metrics-intake
pkg/status/helpers.go:244
↓ 4 callersFunctionobfuscateRedisArgN
(args []string, n int)
pkg/obfuscate/redis.go:287
↓ 4 callersFunctionobfuscateRedisArgsStep
(args []string, start, step int)
pkg/obfuscate/redis.go:293
↓ 4 callersFunctiononBlur
(cm, e)
cmd/agent/gui/views/private/js/codemirror.js:3210
↓ 4 callersMethodonRetrievalError
(valueName string, regKeyCfg registryKey, cfg registryValueCfg, err error)
comp/checks/winregistry/impl/registry_delegate.go:14
↓ 4 callersMethodonUpdate
(update map[string]state.RawConfig, applyStateCallback func(string, state.ApplyStatus))
pkg/trace/remoteconfighandler/remote_config_handler.go:135
↓ 4 callersFunctionpaddingTop
(display)
cmd/agent/gui/views/private/js/codemirror.js:2343
↓ 4 callersFunctionparseARN
(s string, expectedTypes ...resourceType)
cmd/agentless-scanner/main.go:1142
↓ 4 callersFunctionparseAddressWithScheme
(address string, defaultNoSSL bool, defaultParser defaultParseAddressFunc)
comp/logs/agent/config/config.go:282
↓ 4 callersFunctionparseColumnStats
(fr fileReader, path string, valueParser func([]string) error)
pkg/util/cgroups/file.go:107
↓ 4 callersMethodparseDuration
(v string)
pkg/compliance/k8sconfig/loader.go:524
↓ 4 callersFunctionparseEndpoint
(endpoint string)
internal/third_party/kubernetes/pkg/kubelet/cri/remote/util/util_unix.go:108
↓ 4 callersFunctionparseInt64Bytes
parseInt64Bytes parses an int64 even if the sent value is an uint64; this is required because the encoding library could remove bytes from the encoded
pkg/proto/pbgo/trace/decoder_bytes.go:126
↓ 4 callersFunctionparseKVList
(key string)
pkg/config/apm.go:195
↓ 4 callersFunctionparseLogsAPIPayload
parseLogsAPIPayload transforms the payload received from the Logs API to an array of LogMessage
pkg/serverless/logs/parse.go:271
↓ 4 callersMethodparseStat
parseStat retrieves stat info from "stat" file for a process in procfs
pkg/process/procutil/process_linux.go:600
↓ 4 callersMethodparseStatm
parseStatm gets memory info from /proc/(pid)/statm
pkg/process/procutil/process_linux.go:692
↓ 4 callersFunctionpayloadsContain
payloadsContain checks that the given payloads contain the given set of sampled spans.
pkg/trace/writer/trace_test.go:145
↓ 4 callersFunctionpip
(cliParams *cliParams, args []string, stdout io.Writer, stderr io.Writer)
cmd/agent/subcommands/integrations/command.go:316
↓ 4 callersMethodpopulateSecretsCache
(secrets ...*corev1.Secret)
pkg/clusteragent/admission/controllers/webhook/utils_test.go:45
↓ 4 callersFunctionprintAndRemoveFile
(w io.Writer, repo map[string]*pbgo.FileMetaState, name string, prefix string, padding int)
pkg/flare/remote_config.go:132
↓ 4 callersFunctionprint_trouble
(prog, message, use_colors)
tasks/git-hooks/clang-format.py:228
↓ 4 callersFunctionprocessService
(ksvc *v1.Service)
pkg/autodiscovery/listeners/kube_services.go:270
↓ 4 callersFunctionprotoDecodeProtoMatchedRule
(r *adproto.MatchedRule)
pkg/security/security_profile/activity_tree/activity_tree_proto_dec_v1.go:276
↓ 4 callersFunctionpublishReceiverStats
()
pkg/trace/info/info.go:131
↓ 4 callersFunctionpushSelectionToHistory
(sel, dest)
cmd/agent/gui/views/private/js/codemirror.js:4829
↓ 4 callersFunctionputBuffer
(buffer *bytes.Buffer)
pkg/trace/api/api.go:54
↓ 4 callersFunctionqualifiedType
(module *common.Module, kind string)
pkg/security/secl/compiler/generators/accessors/accessors.go:122
↓ 4 callersFunctionr
(e,o,a)
cmd/agent/gui/views/private/js/purify.min.js:2
↓ 4 callersFunctionreadConfigSection
readConfigSection from a config.Component object.
comp/otelcol/otlp/config.go:31
↓ 4 callersFunctionreadFile
(path string)
pkg/util/dmi/dmi_nix.go:23
↓ 4 callersFunctionreadFileLimit
(name string)
pkg/compliance/dbconfig/loader.go:48
↓ 4 callersFunctionreadKprobeProfile
readKprobeProfile reads a /sys/kernel/[debug/]tracing/kprobe_profile file and returns a map of probe -> stats
pkg/ebpf/debugfs.go:107
↓ 4 callersFunctionreadPositiveInt
readPositiveInt reads a config stored in the given key and asserts that it's a positive value
pkg/process/events/store.go:83
↓ 4 callersFunctionreadProfileData
(seconds int)
cmd/agent/subcommands/flare/command.go:121
↓ 4 callersFunctionreadProfileDefinition
(definitionFile string)
pkg/collector/corechecks/snmp/internal/profile/profile_yaml.go:85
↓ 4 callersFunctionreaderTest
(t *testing.T, path string, mmap bool)
comp/dogstatsd/replay/reader_test.go:15
↓ 4 callersMethodrecentlyAdded
(mountID uint32, inode uint64, timestamp uint64)
pkg/security/probe/discarders_linux.go:198
↓ 4 callersFunctionrecentlyAddedIndex
(mountID uint32, inode uint64)
pkg/security/probe/discarders_linux.go:150
↓ 4 callersMethodreconcileService
reconcileService calculates the current set of resolved templates for the given service and calculates the difference from what is currently recorded
pkg/autodiscovery/configmgr.go:297
↓ 4 callersFunctionrecord_and_loads
:param filename: :param content_type: :param content_encoding: :param content: :return: list or dict
test/e2e/containers/fake_datadog/app/api.py:49
↓ 4 callersMethodrecvmsg
()
pkg/network/netlink/socket.go:360
↓ 4 callersFunctionregisterCallback
(t *testing.T, pm *ProcessMonitor, isExec bool, callback *ProcessCallback)
pkg/process/monitor/process_monitor_test.go:40
↓ 4 callersFunctionregisterComposeFile
(filename string)
test/integration/corechecks/docker/catalog.go:25
↓ 4 callersFunctionrelPath
(hostroot, configPath string)
pkg/compliance/dbconfig/loader.go:37
↓ 4 callersMethodrelease
()
pkg/aggregator/context_resolver.go:36
↓ 4 callersFunctionremote_vms_in_config
(vmconfig)
tasks/kernel_matrix_testing/stacks.py:48
↓ 4 callersFunctionremove
copied from go\pkg\mod\golang.org\x\sys@v0.4.0\windows\svc\mgr\mgr_test.go
pkg/util/winutil/service_test.go:44
↓ 4 callersFunctionremoveFilePath
(s string)
pkg/process/metadata/parser/service.go:190
↓ 4 callersFunctionremoveHooks
(m *manager.Manager, probes []manager.ProbesSelector)
pkg/network/usm/ebpf_ssl.go:696
↓ 4 callersFunctionreplaceDigits
replaceDigits replaces consecutive sequences of digits with '?', example: "jobs_2020_1597876964" --> "jobs_?_?"
pkg/obfuscate/obfuscate.go:299
↓ 4 callersFunctionreport
(lastInfo *aggregatorStats, waitingKey string)
test/benchmarks/aggregator/main.go:136
↓ 4 callersMethodreportResourceLog
(resourceTTL time.Duration, resourceLog *ResourceLog)
pkg/compliance/agent.go:509
↓ 4 callersFunctionrequestFragment
(fragment []byte)
pkg/network/protocols/http/model_linux.go:111
↓ 4 callersFunctionresetNiceValues
resetNiceValues takes a group of processes and reset the "nice" values on them. this is needed because the "nice" values are not extract from procfs b
pkg/process/procutil/process_linux_test.go:1458
↓ 4 callersFunctionresolveProfiles
(userProfiles, defaultProfiles ProfileConfigMap)
pkg/collector/corechecks/snmp/internal/profile/profile_resolver.go:21
↓ 4 callersFunctionresolveScrollToPos
(cm)
cmd/agent/gui/views/private/js/codemirror.js:3447
↓ 4 callersFunctionresolveStringWithAdHocTemplateVars
resolveStringWithAdHocTemplateVars takes a string as input and replaces all the `‰var_param‰` patterns by the value returned by the appropriate variab
pkg/autodiscovery/configresolver/configresolver.go:385
↓ 4 callersFunctionrespond
(req *dns.Msg, writer dns.ResponseWriter, record string)
pkg/network/tracer/testutil/testdns/test_dns_server.go:119
↓ 4 callersFunctionretrieveMappingFromConfig
retrieveMappingFromConfig gets a stringmapstring config key and lowercases all map keys to make envvar and yaml sources consistent
pkg/tagger/collectors/workloadmeta_main.go:183
↓ 4 callersMethodretrieveMetricsValues
()
pkg/clusteragent/externalmetrics/metrics_retriever.go:74
↓ 4 callersFunctionretryExitError
retryExitError converts `exec.ExitError`s to `check.RetryableError`s, so that checks using this are retried. embed checks must use this from their `Ru
pkg/collector/corechecks/embed/common.go:21
↓ 4 callersFunctionround
round a float to an int, uniformly choosing between the lower and upper approximations.
pkg/trace/stats/statsraw.go:45
↓ 4 callersFunctionroundUpPow2
round x up to the nearest power of y, where y is a power of 2
pkg/collector/corechecks/ebpf/probe/ebpfcheck/utils.go:29
↓ 4 callersMethodrun
(stopCh <-chan struct{})
pkg/clusteragent/admission/controllers/secret/controller_test.go:172
↓ 4 callersFunctionrunFallbackTests
(t *testing.T, desc string, coreErr, rcErr bool, tests []struct { enableCORE bool allowRCFallback
pkg/network/tracer/connection/kprobe/tracer_test.go:177
↓ 4 callersMethodrunWithBackoff
(t *testing.T, testTime time.Time)
pkg/clusteragent/externalmetrics/metrics_retriever_backoff_test.go:70
↓ 4 callersFunctionrun_cmd_vms
(ctx, stack, cmd, vms, ssh_key, allow_fail=False)
tasks/kmt.py:272
↓ 4 callersMethodrunnerForCheck
(checkID string)
pkg/clusteragent/clusterchecks/checks_distribution.go:124
↓ 4 callersFunctionsafeCloseNullHandle
(h windows.Handle)
pkg/util/winutil/eventlog/subscription/subscription.go:401
↓ 4 callersMethodsample
sample performs all sampling on the processedTrace modifying it as needed and returning if the trace should be kept and the number of events in the tr
pkg/trace/agent/agent.go:515
↓ 4 callersFunctionsecretAbsPath
(secretName string)
cmd/secrethelper/secret_helper_test.go:182
↓ 4 callersFunctionsecretForRelease
secretForRelease returns a Kubernetes secret that contains the info of the given Helm release.
pkg/collector/corechecks/cluster/helm/helm_test.go:622
↓ 4 callersMethodsetADIDForServices
(adID string, serviceEntity string)
pkg/autodiscovery/store.go:179
↓ 4 callersFunctionsetBytes
(field *[]byte, value any)
comp/netflow/goflowlib/convert.go:154
↓ 4 callersFunctionsetCloudProviderSource
setCloudProviderSource set the best source available for EC2 metadata to the inventories payload. The different sources that can be used to know if w
pkg/util/ec2/ec2.go:64
↓ 4 callersMethodsetContainersRegex
setContainersRegex precompiles the regex to match the container names for autodiscovery returns an error if the container names cannot be converted to
pkg/autodiscovery/common/types/prometheus.go:270
↓ 4 callersFunctionsetLastCopied
(newLastCopied)
cmd/agent/gui/views/private/js/codemirror.js:7973
↓ 4 callersFunctionsetOptionalDefaultWithInitConfig
(instance *optional.Option[T], shared optional.Option[T], def T)
pkg/collector/corechecks/windows_event_log/config.go:141
↓ 4 callersMethodsetSQLLiteralEscapes
setSQLLiteralEscapes sets whether or not escape characters should be treated literally by the SQL obfuscator.
pkg/obfuscate/obfuscate.go:49
↓ 4 callersFunctionsetSelectionNoUndo
(doc, sel, options)
cmd/agent/gui/views/private/js/codemirror.js:5011
↓ 4 callersFunctionsetTelemetryMetric
setTelemetryMetric is a helper to submit telemetry metrics
pkg/util/kubernetes/autoscalers/datadogexternal.go:207
↓ 4 callersMethodsetTraceTags
setTraceTags tries to set extra tags to the Trace agent. setTraceTags returns a boolean which indicate whether or not the operation succeed for testin
pkg/serverless/daemon/daemon.go:428
↓ 4 callersMethodsetUpToDate
(v bool)
pkg/autodiscovery/providers/kube_endpoints_file.go:124
↓ 4 callersMethodset_mock
(ret_value, error=False)
tasks/unit-tests/junit_upload_tests.py:11
↓ 4 callersMethodsetup
setup configures the tailer
pkg/logs/tailers/journald/tailer.go:109
↓ 4 callersFunctionsetupDMIForNotEC2
(t *testing.T)
pkg/util/ec2/ec2_test.go:49
↓ 4 callersFunctionsetupDirWithData
(t *testing.T)
comp/core/flare/helpers/builder_test.go:25
↓ 4 callersFunctionsetupHostnameFile
fromHostnameFile
pkg/util/hostname/common_test.go:43
↓ 4 callersFunctionsetupIPCAddress
(t *testing.T, URL string)
pkg/flare/archive_test.go:99
↓ 4 callersFunctionshouldInject
shouldInject returns true if Admission Controller should inject standard tags, APM configs and APM libraries
pkg/clusteragent/admission/mutate/common.go:210
↓ 4 callersFunctionshould_rerun_failed
Parse a log from kitchen run and see if we should rerun it (e.g. because of a network issue).
test/kitchen/tasks/kitchen.py:171
↓ 4 callersMethodsize
()
pkg/collector/scheduler/job.go:24
↓ 4 callersFunctionskipAtomicInner
(doc, pos, oldPos, dir, mayClear)
cmd/agent/gui/views/private/js/codemirror.js:5058
↓ 4 callersFunctionskipIfNotSupported
(t *testing.T, err error)
pkg/network/usm/monitor_test.go:991
↓ 4 callersFunctionsleep
()
test/integration/serverless/src/proxyTestFunctions.js:35
↓ 4 callersMethodsleepHelper
()
test/integration/serverless/src/java-tests/log/src/main/java/LogHandler.java:26
← previousnext →4,401–4,500 of 32,574, ranked by callers