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
↓ 7 callers
Method
ID
ID returns a unique ID for that check instance For checks that only support one instance, the default value is the check name. Regular checks must ca
pkg/collector/corechecks/checkbase.go:230
↓ 7 callers
Function
IPNetFromIP
IPNetFromIP returns a IPNET version of the IP
pkg/security/secl/compiler/eval/cidr.go:23
↓ 7 callers
Method
Identifier
Identifier returns the unique identifier of the current journal being tailed.
pkg/logs/tailers/journald/tailer.go:471
↓ 7 callers
Function
Infof
Infof formats message according to format specifier and writes to log with level = Info.
pkg/trace/log/logger.go:92
↓ 7 callers
Method
Init
(*manager.Manager, *pconfig.Config)
pkg/security/probe/probe_linux.go:70
↓ 7 callers
Function
InitMetadataAsTags
InitMetadataAsTags prepares labels and annotations as tags - It lower-case all the labels in metadataAsTags - It compiles all the patterns and stores
pkg/tagger/utils/k8s_metadata.go:20
↓ 7 callers
Function
InitSystemProbeConfig
InitSystemProbeConfig declares all the configuration values normally read from system-probe.yaml.
pkg/config/system_probe.go:61
↓ 7 callers
Method
Inspect
Inspect returns a docker inspect object for a given container ID. It tries to locate the container in the inspect cache before making the docker inspe
pkg/util/docker/docker_util.go:305
↓ 7 callers
Function
InspectHPA
InspectHPA returns the list of external metrics from the hpa to use for autoscaling. It can handle v2beta1, v2beta2 and v2 versions of HPA.
pkg/util/kubernetes/autoscalers/autoscalers.go:30
↓ 7 callers
Function
InspectWPA
InspectWPA returns the list of external metrics from the wpa to use for autoscaling.
pkg/util/kubernetes/autoscalers/autoscalers.go:142
↓ 7 callers
Function
IsDefaultHostname
IsDefaultHostname returns whether the given hostname is a default one for EC2
pkg/util/ec2/ec2.go:186
↓ 7 callers
Method
IsError
IsError returns whether the current status is an error.
pkg/logs/internal/status/status.go:67
↓ 7 callers
Method
IsRH9Kernel
IsRH9Kernel returns whether the kernel is a rh9 kernel
pkg/security/ebpf/kernel/kernel.go:234
↓ 7 callers
Method
IsReady
hostname.domainname for the entity
pkg/autodiscovery/listeners/types.go:35
↓ 7 callers
Method
IsReady
IsReady indicates whether or not the DogStatsD server is ready
pkg/serverless/metrics/metric.go:94
↓ 7 callers
Method
IsSuccess
IsSuccess returns whether the current status is a success.
pkg/logs/internal/status/status.go:60
↓ 7 callers
Function
IsTelemetryEnabled
IsTelemetryEnabled returns whether or not telemetry is enabled
pkg/config/utils/telemetry.go:32
↓ 7 callers
Method
LoadAndRun
LoadAndRun loads all of the integration configs it can find and schedules them. Should always be run once so providers that don't need polling will be
pkg/autodiscovery/autoconfig.go:193
↓ 7 callers
Function
LoadConfig
LoadConfig from a given path.
comp/otelcol/otlp/internal/testutil/testutil.go:39
↓ 7 callers
Method
Major
Major returns the major number of the version code
pkg/util/kernel/version.go:29
↓ 7 callers
Method
MarshalMsg
MarshalMsg implements msgp.Marshaler
pkg/proto/pbgo/trace/trace_gen.go:10
↓ 7 callers
Method
MarshalMsg
MarshalMsg implements msgp.Marshaler
pkg/proto/pbgo/trace/stats_gen.go:1505
↓ 7 callers
Method
MaxWeight
MaxWeight returns the maxWeight of the queue
pkg/process/util/api/weighted_queue.go:85
↓ 7 callers
Function
Mem
Mem returns basic memory info.
pkg/trace/watchdog/info.go:119
↓ 7 callers
Method
Minor
Minor returns the minor number of the version code
pkg/util/kernel/version.go:34
↓ 7 callers
Method
Name
()
pkg/ebpf/bytecode/runtime/protected_file.go:24
↓ 7 callers
Function
New
New builds a new parser for decoding encoded logfiles. It treats each input message as entirely content, in the given encoding. No timetamp or other
pkg/logs/internal/parsers/encodedtext/encodedtext.go:50
↓ 7 callers
Function
New
(conf *config.AgentConfig, prioritySampler prioritySampler, rareSampler rareSampler, errorsSampler errorsSampl
pkg/trace/remoteconfighandler/remote_config_handler.go:48
↓ 7 callers
Function
NewAggregationFromSpan
NewAggregationFromSpan creates a new aggregation from the provided span and env
pkg/trace/stats/aggregation.go:75
↓ 7 callers
Function
NewCache
NewCache returns a new cache dedicated to a collector
pkg/util/containers/metrics/provider/cache.go:30
↓ 7 callers
Function
NewCheckUnique
(id checkid.ID, name string)
pkg/collector/collector_test.go:59
↓ 7 callers
Function
NewConfigConverter
NewConfigConverter is creating and returning a config converter
pkg/config/legacy_converter.go:26
↓ 7 callers
Function
NewCustomRule
NewCustomRule returns a new custom rule
pkg/security/events/custom.go:78
↓ 7 callers
Function
NewDecidedChooser
NewDecidedChooser returns a new Chooser where the choice is predetermined. This is for use in unit tests.
pkg/logs/internal/util/containersorpods/containers_or_pods.go:111
↓ 7 callers
Function
NewDecoderFromSource
NewDecoderFromSource creates a new decoder from a log source
pkg/logs/internal/decoder/file_decoder.go:24
↓ 7 callers
Function
NewDiscovery
NewDiscovery return a new Discovery instance
pkg/collector/corechecks/snmp/internal/discovery/discovery.go:310
↓ 7 callers
Function
NewErrorsSampler
NewErrorsSampler returns an initialized Sampler dedicate to errors. It behaves just like the the normal ScoreEngine except for its GetType method (use
pkg/trace/sampler/scoresampler.go:51
↓ 7 callers
Function
NewEvalOpts
NewEvalOpts returns eval options
pkg/security/secl/rules/opts.go:73
↓ 7 callers
Function
NewFactory
NewFactory creates a new serializer exporter factory.
comp/otelcol/otlp/internal/serializerexporter/factory.go:31
↓ 7 callers
Function
NewHTTPReceiver
NewHTTPReceiver returns a pointer to a new HTTPReceiver
pkg/trace/api/api.go:89
↓ 7 callers
Function
NewHTTPTransactionsSerializer
NewHTTPTransactionsSerializer creates a new instance of HTTPTransactionsSerializer
comp/forwarder/defaultforwarder/internal/retry/http_transactions_serializer.go:43
↓ 7 callers
Function
NewHashGenerator
NewHashGenerator creates a new HashGenerator
pkg/tagset/hash_generator.go:44
↓ 7 callers
Function
NewIterableSeries
NewIterableSeries creates a new instance of *IterableSeries `callback` is called in the context of the sender's goroutine each time `Append` is calle
pkg/metrics/iterable_series.go:16
↓ 7 callers
Function
NewKubeUtil
NewKubeUtil returns a new KubeUtil
pkg/util/kubernetes/kubelet/kubelet.go:89
↓ 7 callers
Function
NewLimitedReader
NewLimitedReader creates a new LimitedReader.
pkg/trace/api/apiutil/limited_reader.go:29
↓ 7 callers
Function
NewProtoTestStreamer
()
pkg/network/encoding/dns_test.go:192
↓ 7 callers
Function
NewProvider
NewProvider returns a new Provider.
pkg/logs/internal/tag/provider.go:36
↓ 7 callers
Function
NewPulumiStackVM
NewPulumiStackVM creates a new instance of PulumiStackVM
test/new-e2e/pkg/utils/e2e/client/pulumi_stack_vm.go:32
↓ 7 callers
Function
NewRemoteServiceError
NewRemoteServiceError returns a new error which indicates that a remote service queried by the Agent is unavailable (e.g the Datadog Cluster Agent ret
pkg/errors/errors.go:90
↓ 7 callers
Function
NewRetriable
NewRetriable returns a new error which indicates that the object passed in parameter couldn't be fetched and that the query can be retried.
pkg/errors/errors.go:49
↓ 7 callers
Function
NewScheduler
NewScheduler create a Scheduler and returns a pointer to it.
pkg/collector/scheduler/scheduler.go:65
↓ 7 callers
Function
NewSerialStopper
NewSerialStopper returns a new serial stopper. The Stop() method of this object will stop all components, one by one, in the order they were added.
pkg/util/startstop/serial_stopper.go:23
↓ 7 callers
Function
NewServices
NewServices returns a new services.
pkg/logs/service/services.go:25
↓ 7 callers
Function
NewSimpleCounter
NewSimpleCounter creates a new SimpleCounter with default options.
pkg/telemetry/simple_counter.go:18
↓ 7 callers
Function
NewSingleDomainResolver
NewSingleDomainResolver creates a SingleDomainResolver with its destination domain & API keys
pkg/config/resolver/domain_resolver.go:48
↓ 7 callers
Function
NewStringSet
NewStringSet returns as new StringSet initialized with initItems
pkg/util/common/common.go:18
↓ 7 callers
Function
NewTailer
NewTailer returns an initialized Tailer, read to be started. The resulting Tailer will read from the given `file`, decode the content with the given
pkg/logs/tailers/file/tailer.go:141
↓ 7 callers
Function
NewTestServer
NewTestServer creates a new test server
pkg/logs/client/http/test_utils.go:38
↓ 7 callers
Function
NewTestTailer
(reader io.ReadCloser, dockerClient *fakeDockerClient, cancelFunc context.CancelFunc)
pkg/logs/tailers/docker/tailer_test.go:82
↓ 7 callers
Function
NewUDPListener
NewUDPListener returns an idle UDP Statsd listener
comp/dogstatsd/listeners/udp.go:50
↓ 7 callers
Function
NewWatcher
(cfg *config.Config, bpfTelemetry *errtelemetry.EBPFTelemetry, rules ...Rule)
pkg/network/usm/sharedlibraries/watcher.go:66
↓ 7 callers
Function
NewWorkloadMetaExtractor
NewWorkloadMetaExtractor constructs the WorkloadMetaExtractor.
pkg/process/metadata/workloadmeta/extractor.go:68
↓ 7 callers
Method
Next
Next advances the scanner to the next netlink attribute (within the same NestedFrame). It returns false when no more attributes are present, or an err
pkg/network/netlink/attribute_scanner.go:67
↓ 7 callers
Function
NormalizeNamespace
NormalizeNamespace applies policy according to hostname rule
pkg/snmp/utils/utils.go:14
↓ 7 callers
Function
NormalizeOID
NormalizeOID converts an OID from the absolute form ".1.2.3..." to a relative form "1.2.3..."
pkg/snmp/traps/oid_resolver/oid_resolver.go:247
↓ 7 callers
Function
Nt
(e)
cmd/agent/gui/views/private/js/purify.min.js:2
↓ 7 callers
Function
P
(e,t)
cmd/agent/gui/views/private/js/jquery-3.5.1.min.js:2
↓ 7 callers
Function
ParseCPUSetFormat
ParseCPUSetFormat counts CPUs in CPUSet specs like "0,1,5-8". These are comma-separated lists of processor IDs, with hyphenated ranges representing cl
pkg/util/cgroups/cgroup_shared.go:24
↓ 7 callers
Method
Pause
()
pkg/network/tracer/connection/tracer.go:76
↓ 7 callers
Method
PopRequest
()
pkg/util/clusteragent/clcrunner_test.go:102
↓ 7 callers
Method
PopulateDeviceField
PopulateDeviceField removes any `device:` tag in the series tags and uses the value to populate the Serie.Device field FIXME(olivier v): remove this a
pkg/metrics/series.go:105
↓ 7 callers
Method
PopulateResources
PopulateResources removes any dd.internal.resource tags in the series tags and uses the values to populate the Serie.Resources field. The format for t
pkg/metrics/series.go:136
↓ 7 callers
Function
Port
Port formats a port number. It's the same as strconv.Itoa, except that port -1 is mapped to the special string '*'.
comp/netflow/format/port.go:12
↓ 7 callers
Method
Process
Process is the default work unit that receives a trace, transforms it and passes it downstream.
pkg/trace/agent/agent.go:256
↓ 7 callers
Method
Pull
Pull fetches all events in the store that haven't been consumed yet
pkg/process/events/store.go:35
↓ 7 callers
Method
Put
Put declares intent to return an object to the pool. In passthru mode the object is immediately returned to the pool, otherwise we wait until the obje
comp/dogstatsd/packets/pool_manager.go:48
↓ 7 callers
Function
RandomTrace
RandomTrace generates a random trace with a depth from 1 to maxLevels of spans. Each level has at most maxSpans items.
pkg/trace/testutil/trace.go:74
↓ 7 callers
Method
Read
Read reads from the underlying reader.
pkg/trace/api/apiutil/limited_reader.go:37
↓ 7 callers
Method
ReadNext
ReadNext reads the next packet found in the file and returns the protobuf representation and an error if any.
comp/dogstatsd/replay/reader.go:164
↓ 7 callers
Method
ReceiveResourceSpans
ReceiveResourceSpans processes the given rspans and returns the source that it identified from processing them.
pkg/trace/api/otlp.go:175
↓ 7 callers
Function
Register
Register registers the given Diagnose function
pkg/diagnose/diagnosis/loader.go:109
↓ 7 callers
Method
RegisterInfo
RegisterInfo registers some info to display on the status page
pkg/logs/sources/source.go:113
↓ 7 callers
Method
RemoveChannel
(channel string)
pkg/util/winutil/eventlog/test/test.go:33
↓ 7 callers
Method
RemoveExpired
RemoveExpired removes stateful metrics that have expired before the given timestamp.
pkg/metrics/check_metrics.go:119
↓ 7 callers
Function
ResetCache
ResetCache deletes existing kubeutil related cache
pkg/util/kubernetes/kubelet/kubelet.go:113
↓ 7 callers
Method
ResetCalls
ResetCalls makes the mock forget previous calls
pkg/aggregator/mocksender/mocksender.go:120
↓ 7 callers
Function
ResetGlobalKubeUtil
ResetGlobalKubeUtil is a helper to remove the current KubeUtil global It is ONLY to be used for tests
pkg/util/kubernetes/kubelet/kubelet.go:106
↓ 7 callers
Method
ResolveMonotonicTimestamp
ResolveMonotonicTimestamp converts a kernel monotonic timestamp to an absolute time
pkg/security/resolvers/time/resolver.go:46
↓ 7 callers
Method
ResolveNetworkDeviceIfName
(ev *Event, e *NetworkDeviceContext)
pkg/security/secl/model/field_handlers_unix.go:962
↓ 7 callers
Method
Root
()
pkg/security/tests/module_tester.go:1082
↓ 7 callers
Function
Run
Run fullfills the contract required by programs running as Windows Services. https://learn.microsoft.com/en-us/windows/win32/services/service-programs
pkg/util/winutil/servicemain/servicemain.go:186
↓ 7 callers
Method
RunEventCollection
RunEventCollection will return the most recent events emitted by the apiserver.
pkg/util/kubernetes/apiserver/events.go:26
↓ 7 callers
Function
RunningAsWindowsService
RunningAsWindowsService returns true if the current process is running as a Windows Service and the application should call Run().
pkg/util/winutil/servicemain/servicemain.go:158
↓ 7 callers
Method
Scan
Scan scans the tokenizer for the next token and returns the token type and the token buffer.
pkg/obfuscate/sql_tokenizer.go:268
↓ 7 callers
Method
ScrubProcessCommand
ScrubProcessCommand uses a cache memory to avoid scrubbing already known process' cmdlines
pkg/process/procutil/data_scrubber.go:133
↓ 7 callers
Method
SetByte
SetByte adds an OctetString PDU with the given OID and value
pkg/collector/corechecks/snmp/internal/session/fake_session.go:223
↓ 7 callers
Function
SliceToArray
SliceToArray copy src bytes to dst. Destination should have enough space
pkg/security/secl/model/utils.go:14
↓ 7 callers
Method
SplitPayload
SplitPayload breaks the payload into times number of pieces
pkg/serializer/marshaler/marshaler.go:33
↓ 7 callers
Method
Start
Start starts the sender.
pkg/logs/sender/sender.go:50
↓ 7 callers
Method
StartObject
StartObject starts a new JSON object (add '{')
pkg/util/json/raw_object_writer.go:39
← previous
next →
2,201–2,300 of 32,574, ranked by callers