Skip to content

Commit

Permalink
Updates for comments,
Browse files Browse the repository at this point in the history
  • Loading branch information
lallydd committed Nov 22, 2023
1 parent 1417a85 commit 6468dc7
Show file tree
Hide file tree
Showing 7 changed files with 953 additions and 115 deletions.
13 changes: 13 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,19 @@ func InitConfig(config Config) {
config.BindEnvAndSetDefault("dogstatsd_tags", []string{})
config.BindEnvAndSetDefault("dogstatsd_mapper_cache_size", 1000)
config.BindEnvAndSetDefault("dogstatsd_string_interner_size", 4096)
// Whether to unmap old interner pages. Generally you do unless debugging something.
config.BindEnvAndSetDefault("dogstatsd_string_interner_mmap_preserve", false)
// Enable diagnostic checks and logging in the interner.
config.BindEnvAndSetDefault("dogstatsd_string_interner_diagnostics", false)
// Directory to hold interner temporary files.
config.BindEnvAndSetDefault("dogstatsd_string_interner_tmpdir", os.TempDir())
// Whether to intern strings within mmap'd temporary files.
config.BindEnvAndSetDefault("dogstatsd_string_interner_mmap_enable", false)
// Minimum size (per origin) for a string interner before using mmap'd temporary flies.
config.BindEnvAndSetDefault("dogstatsd_string_interner_mmap_minsizekb", 65536)
// Initial size used for LRU string cache.
config.BindEnvAndSetDefault("dogstatsd_string_interner_per_origin_initial_size", 64)

// Enable check for Entity-ID presence when enriching Dogstatsd metrics with tags
config.BindEnvAndSetDefault("dogstatsd_entity_id_precedence", false)
// Sends Dogstatsd parse errors to the Debug level instead of the Error level
Expand Down
65 changes: 63 additions & 2 deletions pkg/util/cache/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,73 @@ module github.com/DataDog/datadog-agent/pkg/util/cache
go 1.20

require (
github.com/DataDog/datadog-agent v0.0.0-20231121233128-f8de392596ba
github.com/DataDog/datadog-agent/pkg/telemetry v0.51.0-devel
github.com/DataDog/datadog-agent/pkg/util/log v0.50.0-rc.4
github.com/hashicorp/golang-lru v1.0.2
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/stretchr/testify v1.8.4
go.uber.org/atomic v1.11.0
golang.org/x/text v0.14.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/DataDog/datadog-agent/comp/core/telemetry v0.50.0-rc.4 // indirect
github.com/DataDog/datadog-agent/pkg/collector/check/defaults v0.50.0-rc.4 // indirect
github.com/DataDog/datadog-agent/pkg/config/env v0.50.0-rc.4 // indirect
github.com/DataDog/datadog-agent/pkg/config/logs v0.50.0-rc.4 // indirect
github.com/DataDog/datadog-agent/pkg/config/model v0.50.0-rc.4 // indirect
github.com/DataDog/datadog-agent/pkg/util/executable v0.50.0-rc.4 // indirect
github.com/DataDog/datadog-agent/pkg/util/filesystem v0.50.0-rc.4 // indirect
github.com/DataDog/datadog-agent/pkg/util/fxutil v0.50.0-rc.4 // indirect
github.com/DataDog/datadog-agent/pkg/util/scrubber v0.50.0-rc.4 // indirect
github.com/DataDog/datadog-agent/pkg/util/system/socket v0.50.0-rc.4 // indirect
github.com/DataDog/viper v1.12.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cihub/seelog v0.0.0-20170130134532-f561c5e57575 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/hashicorp/hcl v1.0.1-vault-5 // indirect
github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/power-devops/perfstat v0.0.0-20220216144756-c35f1ee13d7c // indirect
github.com/prometheus/client_golang v1.17.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.44.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/shirou/gopsutil/v3 v3.23.10 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/spf13/cobra v1.7.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/yusufpapurcu/wmi v1.2.3 // indirect
go.opentelemetry.io/otel v1.20.0 // indirect
go.opentelemetry.io/otel/exporters/prometheus v0.42.0 // indirect
go.opentelemetry.io/otel/metric v1.20.0 // indirect
go.opentelemetry.io/otel/sdk v1.20.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.20.0 // indirect
go.opentelemetry.io/otel/trace v1.20.0 // indirect
go.uber.org/dig v1.17.0 // indirect
go.uber.org/fx v1.18.2 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.26.0 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/sys v0.14.1-0.20231108175955-e4099bfacb8c // indirect
golang.org/x/tools v0.15.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 6468dc7

Please sign in to comment.