Skip to content

Commit

Permalink
[APR-190] Change the default metric compression kind to be zstd. (#…
Browse files Browse the repository at this point in the history
…32087)

Co-authored-by: blt <[email protected]>
Co-authored-by: scottopell <[email protected]>
  • Loading branch information
3 people authored Dec 18, 2024
1 parent 32aabee commit 47cad73
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/config/setup/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const (
DefaultRuntimePoliciesDir = "/etc/datadog-agent/runtime-security.d"

// DefaultCompressorKind is the default compressor. Options available are 'zlib' and 'zstd'
DefaultCompressorKind = "zlib"
DefaultCompressorKind = "zstd"

// DefaultZstdCompressionLevel is the default compression level for `zstd`.
// Compression level 1 provides the lowest compression ratio, but uses much less RSS especially
Expand Down
2 changes: 1 addition & 1 deletion pkg/serializer/internal/metrics/service_checks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func TestPayloadsEmptyServiceCheck(t *testing.T) {

func TestPayloadsServiceChecks(t *testing.T) {
config := mock.New(t)
config.Set("serializer_max_payload_size", 200, pkgconfigmodel.SourceAgentRuntime)
config.Set("serializer_max_payload_size", 250, pkgconfigmodel.SourceAgentRuntime)

serviceCheckCollection := []ServiceChecks{
{createServiceCheck("1"), createServiceCheck("2"), createServiceCheck("3")},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Each section from every release note are combined when the
# CHANGELOG.rst is rendered. So the text needs to be worded so that
# it does not depend on any information only available in another
# section. This may mean repeating some details, but each section
# must be readable independently of the other.
#
# Each section note must be formatted as reStructuredText.
---
enhancements:
- |
Metric payloads are compressed using `zstd` compression by default.
This can be reverted to the previous compression kind by adding
``serializer_compressor_kind: zlib`` to the configuration.

0 comments on commit 47cad73

Please sign in to comment.