MCPcopy Create free account

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

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

↓ 8 callersMethodIsCheckConfig
IsCheckConfig returns true if the config is a node-agent check configuration,
pkg/autodiscovery/integration/config.go:187
↓ 8 callersMethodIsEphemeral
IsEphemeral checks if source port and destination port are ephemeral
comp/netflow/portrollup/portrollup.go:129
↓ 8 callersMethodIsLogConfig
IsLogConfig returns true if config contains a logs config.
pkg/autodiscovery/integration/config.go:192
↓ 8 callersFunctionIsNAT
IsNAT returns whether this Con represents a NAT translation
pkg/network/netlink/conntracker.go:410
↓ 8 callersMethodIsRunning
IsRunning returns true if the server is running
comp/dogstatsd/server/component.go:29
↓ 8 callersFunctionIsRunningOn
IsRunningOn returns true if the agent is running on AWS
pkg/util/ec2/ec2.go:101
↓ 8 callersMethodLen
Len returns the number of items in the queue
pkg/process/util/api/weighted_queue.go:66
↓ 8 callersFunctionMakeCommand
MakeCommand returns a `version` command to be used by agent binaries.
pkg/cli/subcommands/version/command.go:26
↓ 8 callersFunctionMarshalEasyJSON
MarshalEasyJSON easyjson marshal helper
pkg/security/utils/json.go:53
↓ 8 callersMethodMarshalMsg
MarshalMsg implements msgp.Marshaler
pkg/proto/pbgo/trace/trace_gen.go:76
↓ 8 callersMethodMaxSize
MaxSize returns the maxSize of the queue
pkg/process/util/api/weighted_queue.go:80
↓ 8 callersMethodModuleIsEnabled
ModuleIsEnabled returns a bool indicating if the given module name is enabled.
cmd/system-probe/config/config.go:188
↓ 8 callersMethodMovingSum
MovingSum returns the current sum over the specified time window.
pkg/logs/internal/util/moving_sum.go:64
↓ 8 callersFunctionNew
New returns an initialized Auditor
pkg/logs/auditor/auditor.go:77
↓ 8 callersFunctionNewAutoConfig
NewAutoConfig creates an AutoConfig instance and starts it.
pkg/autodiscovery/autoconfig.go:67
↓ 8 callersFunctionNewAutoMultilineHandler
NewAutoMultilineHandler returns a new AutoMultilineHandler.
pkg/logs/internal/decoder/auto_multiline_handler.go:74
↓ 8 callersFunctionNewBytesPayload
NewBytesPayload creates a new instance of BytesPayload.
comp/forwarder/defaultforwarder/transaction/bytes_payload.go:16
↓ 8 callersFunctionNewConfigMapStore
NewConfigMapStore returns a new store backed by a configmap. The configmap will be created in the specified namespace if it does not exist.
pkg/clusteragent/custommetrics/store_configmap.go:48
↓ 8 callersFunctionNewDatadogMetricsInternalStore
NewDatadogMetricsInternalStore creates a new NewDatadogMetricsInternalStore
pkg/clusteragent/externalmetrics/store.go:41
↓ 8 callersFunctionNewDefaultOrchestratorConfig
NewDefaultOrchestratorConfig returns an NewDefaultOrchestratorConfig using a configuration file. It can be nil if there is no file available. In this
pkg/orchestrator/config/config.go:56
↓ 8 callersFunctionNewDisabled
NewDisabled returns a new error which indicates that a particular Agent component is disabled.
pkg/errors/errors.go:75
↓ 8 callersFunctionNewDummyECS
NewDummyECS create a mock of the ECS metadata API.
pkg/util/ecs/metadata/testutil/dummy_ecs.go:45
↓ 8 callersFunctionNewDynamicConfig
NewDynamicConfig creates a new dynamic config object which maps service signatures to their corresponding sampling rates. Each service will have a def
pkg/trace/sampler/dynamic_config.go:28
↓ 8 callersFunctionNewGraphID
NewGraphID returns a new GraphID based on the provided NodeIDs
pkg/security/utils/graph.go:58
↓ 8 callersMethodNewHTTPTransport
NewHTTPTransport returns a new http.Transport to be used for outgoing connections to the Datadog API.
pkg/trace/config/config.go:558
↓ 8 callersFunctionNewHashlessTagsAccumulator
NewHashlessTagsAccumulator returns a new empty HashlessTagsAccumulator.
pkg/tagset/hashless_tags_accumulator.go:21
↓ 8 callersFunctionNewHistogramWithOpts
NewHistogramWithOpts creates a Histogram with the given options for telemetry purpose. See NewHistogram()
pkg/telemetry/histogram.go:39
↓ 8 callersFunctionNewInt
NewInt creates a new sysctl.Int `procRoot` points to the procfs root, e.g. /proc `sysctl` is the path for the sysctl, e.g. /proc/sys/<sysctl> `cacheF
pkg/network/config/sysctl/sysctl.go:60
↓ 8 callersFunctionNewJSONFormatter
NewJSONFormatter creates a new JSONFormatter instance with an optional OIDResolver variable.
pkg/snmp/traps/formatter/formatter.go:56
↓ 8 callersFunctionNewKey
NewKey generates a new Key
pkg/network/protocols/kafka/stats.go:27
↓ 8 callersFunctionNewKubeletMock
NewKubeletMock returns a mock instance
pkg/util/kubernetes/kubelet/mock/kubelet.go:36
↓ 8 callersFunctionNewMockProvider
NewMockProvider creates a new provider that will not provide any pipelines.
pkg/logs/pipeline/provider.go:58
↓ 8 callersFunctionNewMonitor
NewMonitor returns a new Monitor instance
pkg/network/usm/monitor.go:62
↓ 8 callersFunctionNewMultiLineHandler
NewMultiLineHandler returns a new MultiLineHandler.
pkg/logs/internal/decoder/multiline_handler.go:42
↓ 8 callersFunctionNewOTLPTracesRequest
NewOTLPTracesRequest creates a new TracesRequest based on the given definitions.
pkg/trace/testutil/otlp.go:130
↓ 8 callersFunctionNewOptions
NewOptions creates new Options with default values
comp/forwarder/defaultforwarder/default_forwarder.go:123
↓ 8 callersFunctionNewPathIdentifier
NewPathIdentifier returns a new PathIdentifier instance Note that `path` must be an absolute path
pkg/network/usm/utils/path_identifier.go:55
↓ 8 callersFunctionNewPlaceholderProcessCacheEntry
NewPlaceholderProcessCacheEntry returns a new empty process cache entry for failed process resolutions
pkg/security/secl/model/process_cache_entry_unix.go:147
↓ 8 callersFunctionNewSecurityAgentParams
NewSecurityAgentParams creates a new instance of Params for the Security Agent.
comp/core/config/params.go:74
↓ 8 callersFunctionNewSenderStats
NewSenderStats creates a new SenderStats
pkg/collector/check/stats/stats.go:64
↓ 8 callersFunctionNewService
NewService returns a new service.
pkg/logs/service/service.go:15
↓ 8 callersFunctionNewSketchesSourceTest
()
pkg/metrics/test_helper.go:159
↓ 8 callersFunctionNewTagger
NewTagger returns an allocated tagger. You still have to run Init() once the config package is ready. You are probably looking for tagger.Tag() using
pkg/tagger/local/tagger.go:42
↓ 8 callersFunctionNewTailerTracker
NewTailerTracker creates a new TailerTracker instance.
pkg/logs/tailers/tailer_tracker.go:17
↓ 8 callersFunctionNewTransactionRetryQueue
NewTransactionRetryQueue creates a new instance of NewTransactionRetryQueue
comp/forwarder/defaultforwarder/internal/retry/transaction_retry_queue.go:80
↓ 8 callersFunctionNewTransactionRetryQueueTelemetry
NewTransactionRetryQueueTelemetry creates a new TransactionRetryQueueTelemetry
comp/forwarder/defaultforwarder/internal/retry/telemetry.go:234
↓ 8 callersFunctionNewWorker
NewWorker returns a new worker to consume Transaction from inputChan and push back erroneous ones into requeueChan.
comp/forwarder/defaultforwarder/worker.go:51
↓ 8 callersFunctionNumCPU
NumCPU returns the count of CPUs in the CPU affinity mask of the pid 1 process
pkg/security/utils/numcpu.go:16
↓ 8 callersMethodParamStore
ParamStore() returns the normal parameter store
test/new-e2e/pkg/runner/profile.go:54
↓ 8 callersFunctionPayloads
Payloads serializes a metadata payload and sends it to the forwarder
pkg/serializer/split/split.go:75
↓ 8 callersMethodPrepareFilePath
PrepareFilePath returns the full path of a file in the flare. PrepareFilePath will create the necessary directories in the flare temporary dir so tha
comp/core/flare/types/types.go:121
↓ 8 callersMethodProcess
Process sends the Payload of the transaction to the right Endpoint and Domain.
comp/forwarder/defaultforwarder/transaction/transaction.go:287
↓ 8 callersMethodPrune
Prune deletes tags for entities that have been marked as deleted. This is to be called regularly from the user class.
pkg/tagger/tagstore/tagstore.go:217
↓ 8 callersMethodPull
(ctx context.Context)
pkg/workloadmeta/collectors/internal/cloudfoundry/cf_vm/cloudfoundry_vm.go:70
↓ 8 callersMethodQueryKubelet
QueryKubelet allows to query the KubeUtil registered kubelet API on the parameter path path commonly used are /healthz, /pods, /metrics return the con
pkg/util/kubernetes/kubelet/kubelet.go:359
↓ 8 callersFunctionRandString
RandString returns a random string of the given length size
pkg/security/utils/rand.go:17
↓ 8 callersFunctionRandomTraceChunk
RandomTraceChunk generates a random trace chunk with a depth from 1 to maxLevels of spans. Each level has at most maxSpans items.
pkg/trace/testutil/trace.go:92
↓ 8 callersFunctionRead
Read returns a value previously stored, or the empty string.
pkg/persistentcache/persistentcache.go:50
↓ 8 callersFunctionReadConfig
ReadConfig builds the traps configuration from the Agent configuration.
pkg/snmp/traps/config/config.go:47
↓ 8 callersFunctionRegisterExtension
RegisterExtension registers the serverless daemon and subscribe to INVOKE and SHUTDOWN messages. Returns either (the serverless ID assigned by the ser
pkg/serverless/registration/extension_api.go:37
↓ 8 callersMethodRegisterExtension
RegisterExtension allows to register (or override) an extension
pkg/collector/corechecks/containers/generic/processor.go:51
↓ 8 callersMethodRemove
(pkg string)
test/new-e2e/tests/agent-platform/common/test_client.go:30
↓ 8 callersMethodRemoveSource
RemoveSource removes an existing source from the logs agent. The source is recognized by pointer equality.
pkg/logs/schedulers/types.go:37
↓ 8 callersFunctionReport
Report returns a `map` representation of the stats in the given value. All map keys are converted to snake_case. Such structs should tag fields to be
pkg/util/atomicstats/reporter.go:53
↓ 8 callersFunctionRequireTrueBeforeTimeout
RequireTrueBeforeTimeout is the same as AssertTrueBeforeTimeout, but it calls t.failNow() if the condition function times out.
pkg/util/testutil/timeout.go:27
↓ 8 callersMethodResolve
(map[util.Address]struct{})
pkg/network/dns/types.go:68
↓ 8 callersMethodResolveEventTimestamp
(ev *Event, e *BaseEvent)
pkg/security/secl/model/field_handlers_unix.go:947
↓ 8 callersMethodRetried
Failed returns the number of connections to which the server responded with a 5xx HTTP status code.
pkg/trace/writer/testserver.go:114
↓ 8 callersMethodRun
(payloadSize int)
pkg/network/tracer/tracer_test.go:921
↓ 8 callersMethodSample
Sample a trace and returns true if trace was sampled (should be kept)
pkg/trace/sampler/rare_sampler.go:79
↓ 8 callersFunctionScrubPodTemplateSpec
ScrubPodTemplateSpec scrubs a pod template.
pkg/orchestrator/redact/pod.go:26
↓ 8 callersMethodSecretStore
SecretStore returns the secure parameter store
test/new-e2e/pkg/runner/profile.go:56
↓ 8 callersMethodSerialize
(messages []*message.Message)
pkg/logs/sender/serializer.go:26
↓ 8 callersMethodSetEnabled
(enabled bool)
pkg/trace/remoteconfighandler/remote_config_handler.go:34
↓ 8 callersFunctionSetHostMetadata
SetHostMetadata updates the host metadata value in the cache
pkg/metadata/inventories/inventories.go:84
↓ 8 callersMethodSetMetricStatsEnabled
SetMetricStatsEnabled enables or disables metric stats tracking
comp/dogstatsd/serverDebug/component.go:24
↓ 8 callersMethodSetName
SetName sets the path name
pkg/security/secl/model/model_unix.go:868
↓ 8 callersMethodSetProfile
SetProfile refreshes config based on profile
pkg/collector/corechecks/snmp/internal/checkconfig/config.go:201
↓ 8 callersFunctionSplitEntityName
SplitEntityName returns the prefix and container cid parts of a valid entity name
pkg/util/containers/entity.go:39
↓ 8 callersFunctionSplitImageName
SplitImageName splits a valid image name (from ResolveImageName) and returns: - the "long image name" with registry and prefix, without tag - the regi
pkg/util/containers/image.go:26
↓ 8 callersMethodStart
Start starts the DogStatsD agent
pkg/serverless/metrics/metric.go:65
↓ 8 callersMethodStart
Start starts the HTTP server
pkg/util/ecs/metadata/testutil/dummy_ecs.go:80
↓ 8 callersMethodStartTLS
()
pkg/util/clusteragent/clcrunner_test.go:97
↓ 8 callersMethodStore
Store returns a reference to the workloadmeta store being used by the listener.
pkg/autodiscovery/listeners/workloadmeta.go:28
↓ 8 callersMethodStore
Store implements PersistentDB
pkg/util/trivy/db.go:127
↓ 8 callersMethodSum32
()
pkg/trace/sampler/signature.go:122
↓ 8 callersMethodSummary
Summary builds and returns a summary string all metrics beloging to the current `MetricGroup`. The string looks like: m1=100(50.00/s) m2=0(0.00/s) Whe
pkg/network/protocols/telemetry/metric_group.go:84
↓ 8 callersMethodTag
(entity string, cardinality collectors.TagCardinality)
pkg/tagger/interface.go:29
↓ 8 callersFunctionToString
ToString converts a dns.Hostname to a string
pkg/network/dns/types.go:21
↓ 8 callersMethodTotal
Total returns the total number of connections which reached the server.
pkg/trace/writer/testserver.go:117
↓ 8 callersFunctionTraceStackDepth
TraceStackDepth logs at the trace level and the current stack depth plus the additional given one and returns an error containing the formated log mes
pkg/util/log/log.go:789
↓ 8 callersMethodUDPLocalAddr
UDPLocalAddr returns the local address of the UDP statsd listener, if enabled.
comp/dogstatsd/server/component.go:41
↓ 8 callersMethodUnmarshalMsg
UnmarshalMsg implements msgp.Unmarshaler
pkg/proto/pbgo/trace/trace_gen.go:97
↓ 8 callersMethodUnsubscribe
Unsubscribe reverses the effect of Subscribe.
pkg/workloadmeta/types.go:54
↓ 8 callersMethodUnwrap
TODO: real generics
pkg/network/encoding/dns_test.go:203
↓ 8 callersMethodWithLogger
WithLogger set logger
pkg/security/secl/rules/opts.go:61
↓ 8 callersFunctionX
(e)
cmd/agent/gui/views/private/js/jquery-3.5.1.min.js:2
↓ 8 callersMethod_line
Write 'text' word-wrapped at self.width characters.
tasks/libs/ninja_syntax.py:155
↓ 8 callersFunction_update_file
(warn: bool, path: str, pattern: str, replace: str, expected_match: int = 1)
tasks/update_go.py:109
↓ 8 callersMethodaddBucket
(bucket *metrics.HistogramBucket)
pkg/aggregator/check_sampler.go:71
← previousnext →1,901–2,000 of 32,574, ranked by callers