Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CWS] move CWS tag resolver to use the tagger component #28843

Closed
wants to merge 6 commits into from

Conversation

paulcacheux
Copy link
Contributor

What does this PR do?

This PR makes CWS use the tagger resolver component. This tagger is based on the workloadmeta store, so it has no associated cost (contrary to using the remote tagger for example).

Most of the PR is just type piping, changing all module definitions to use the correct component.

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Copy link

Go Package Import Differences

Baseline: f74cad5
Comparison: 86e7ea2

binaryosarchchange
system-probelinuxamd64
+28, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/common
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl/collectors
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl/local
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl/replay
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl/tagstore
+github.com/DataDog/datadog-agent/comp/core/tagger/tags
+github.com/DataDog/datadog-agent/comp/dogstatsd/packets
+github.com/DataDog/datadog-agent/internal/third_party/kubernetes/pkg/kubelet/cri/remote/util
+github.com/DataDog/datadog-agent/pkg/util/containers/cri
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/containerd
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/cri
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/docker
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/ecsfargate
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/kubelet
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/provider
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/system
+github.com/DataDog/datadog-agent/pkg/util/ecs/common
+github.com/DataDog/datadog-agent/pkg/util/ecs/metadata
+github.com/DataDog/datadog-agent/pkg/util/ecs/metadata/v1
+github.com/DataDog/datadog-agent/pkg/util/ecs/metadata/v2
+github.com/DataDog/datadog-agent/pkg/util/ecs/metadata/v3or4
+github.com/DataDog/datadog-agent/pkg/util/ecs/telemetry
+github.com/DataDog/datadog-agent/pkg/util/trie
+github.com/containerd/cgroups/v3/cgroup2/stats
+k8s.io/cri-api/pkg/apis/runtime/v1
+k8s.io/cri-api/pkg/apis/runtime/v1alpha2
system-probelinuxarm64
+28, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/common
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl/collectors
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl/local
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl/replay
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl/tagstore
+github.com/DataDog/datadog-agent/comp/core/tagger/tags
+github.com/DataDog/datadog-agent/comp/dogstatsd/packets
+github.com/DataDog/datadog-agent/internal/third_party/kubernetes/pkg/kubelet/cri/remote/util
+github.com/DataDog/datadog-agent/pkg/util/containers/cri
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/containerd
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/cri
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/docker
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/ecsfargate
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/kubelet
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/provider
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/system
+github.com/DataDog/datadog-agent/pkg/util/ecs/common
+github.com/DataDog/datadog-agent/pkg/util/ecs/metadata
+github.com/DataDog/datadog-agent/pkg/util/ecs/metadata/v1
+github.com/DataDog/datadog-agent/pkg/util/ecs/metadata/v2
+github.com/DataDog/datadog-agent/pkg/util/ecs/metadata/v3or4
+github.com/DataDog/datadog-agent/pkg/util/ecs/telemetry
+github.com/DataDog/datadog-agent/pkg/util/trie
+github.com/containerd/cgroups/v3/cgroup2/stats
+k8s.io/cri-api/pkg/apis/runtime/v1
+k8s.io/cri-api/pkg/apis/runtime/v1alpha2
system-probewindowsamd64
+170, -0
+archive/tar
+github.com/DataDog/datadog-agent/comp/core/tagger/common
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl/collectors
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl/local
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl/replay
+github.com/DataDog/datadog-agent/comp/core/tagger/taggerimpl/tagstore
+github.com/DataDog/datadog-agent/comp/core/tagger/tags
+github.com/DataDog/datadog-agent/comp/dogstatsd/packets
+github.com/DataDog/datadog-agent/internal/third_party/kubernetes/pkg/kubelet/cri/remote/util
+github.com/DataDog/datadog-agent/pkg/util/containerd
+github.com/DataDog/datadog-agent/pkg/util/containers/cri
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/containerd
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/cri
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/docker
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/ecsfargate
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/kubelet
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/provider
+github.com/DataDog/datadog-agent/pkg/util/containers/metrics/system
+github.com/DataDog/datadog-agent/pkg/util/ecs/common
+github.com/DataDog/datadog-agent/pkg/util/ecs/metadata
+github.com/DataDog/datadog-agent/pkg/util/ecs/metadata/v1
+github.com/DataDog/datadog-agent/pkg/util/ecs/metadata/v2
+github.com/DataDog/datadog-agent/pkg/util/ecs/metadata/v3or4
+github.com/DataDog/datadog-agent/pkg/util/ecs/telemetry
+github.com/Microsoft/go-winio/backuptar
+github.com/Microsoft/go-winio/pkg/bindfilter
+github.com/Microsoft/go-winio/vhd
+github.com/Microsoft/hcsshim
+github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/stats
+github.com/Microsoft/hcsshim/computestorage
+github.com/Microsoft/hcsshim/internal/cow
+github.com/Microsoft/hcsshim/internal/hcs
+github.com/Microsoft/hcsshim/internal/hcs/schema1
+github.com/Microsoft/hcsshim/internal/hcs/schema2
+github.com/Microsoft/hcsshim/internal/hcserror
+github.com/Microsoft/hcsshim/internal/hns
+github.com/Microsoft/hcsshim/internal/interop
+github.com/Microsoft/hcsshim/internal/jobobject
+github.com/Microsoft/hcsshim/internal/log
+github.com/Microsoft/hcsshim/internal/logfields
+github.com/Microsoft/hcsshim/internal/longpath
+github.com/Microsoft/hcsshim/internal/memory
+github.com/Microsoft/hcsshim/internal/mergemaps
+github.com/Microsoft/hcsshim/internal/oc
+github.com/Microsoft/hcsshim/internal/protocol/guestrequest
+github.com/Microsoft/hcsshim/internal/queue
+github.com/Microsoft/hcsshim/internal/safefile
+github.com/Microsoft/hcsshim/internal/security
+github.com/Microsoft/hcsshim/internal/timeout
+github.com/Microsoft/hcsshim/internal/vmcompute
+github.com/Microsoft/hcsshim/internal/wclayer
+github.com/Microsoft/hcsshim/internal/winapi
+github.com/Microsoft/hcsshim/osversion
+github.com/Microsoft/hcsshim/pkg/ociwclayer
+github.com/containerd/cgroups/v3/cgroup1/stats
+github.com/containerd/containerd
+github.com/containerd/containerd/api/runtime/sandbox/v1
+github.com/containerd/containerd/api/services/containers/v1
+github.com/containerd/containerd/api/services/content/v1
+github.com/containerd/containerd/api/services/diff/v1
+github.com/containerd/containerd/api/services/events/v1
+github.com/containerd/containerd/api/services/images/v1
+github.com/containerd/containerd/api/services/introspection/v1
+github.com/containerd/containerd/api/services/leases/v1
+github.com/containerd/containerd/api/services/namespaces/v1
+github.com/containerd/containerd/api/services/sandbox/v1
+github.com/containerd/containerd/api/services/snapshots/v1
+github.com/containerd/containerd/api/services/streaming/v1
+github.com/containerd/containerd/api/services/tasks/v1
+github.com/containerd/containerd/api/services/transfer/v1
+github.com/containerd/containerd/api/services/version/v1
+github.com/containerd/containerd/api/types
+github.com/containerd/containerd/api/types/task
+github.com/containerd/containerd/api/types/transfer
+github.com/containerd/containerd/archive
+github.com/containerd/containerd/archive/compression
+github.com/containerd/containerd/archive/tarheader
+github.com/containerd/containerd/cio
+github.com/containerd/containerd/containers
+github.com/containerd/containerd/content
+github.com/containerd/containerd/content/proxy
+github.com/containerd/containerd/defaults
+github.com/containerd/containerd/diff
+github.com/containerd/containerd/diff/proxy
+github.com/containerd/containerd/events
+github.com/containerd/containerd/events/exchange
+github.com/containerd/containerd/filters
+github.com/containerd/containerd/identifiers
+github.com/containerd/containerd/images
+github.com/containerd/containerd/images/archive
+github.com/containerd/containerd/labels
+github.com/containerd/containerd/leases
+github.com/containerd/containerd/leases/proxy
+github.com/containerd/containerd/mount
+github.com/containerd/containerd/namespaces
+github.com/containerd/containerd/oci
+github.com/containerd/containerd/pkg/cleanup
+github.com/containerd/containerd/pkg/deprecation
+github.com/containerd/containerd/pkg/dialer
+github.com/containerd/containerd/pkg/epoch
+github.com/containerd/containerd/pkg/kmutex
+github.com/containerd/containerd/pkg/randutil
+github.com/containerd/containerd/pkg/streaming
+github.com/containerd/containerd/pkg/transfer
+github.com/containerd/containerd/pkg/transfer/proxy
+github.com/containerd/containerd/pkg/transfer/streaming
+github.com/containerd/containerd/pkg/unpack
+github.com/containerd/containerd/pkg/userns
+github.com/containerd/containerd/plugin
+github.com/containerd/containerd/protobuf
+github.com/containerd/containerd/protobuf/proto
+github.com/containerd/containerd/protobuf/types
+github.com/containerd/containerd/reference
+github.com/containerd/containerd/remotes
+github.com/containerd/containerd/remotes/docker
+github.com/containerd/containerd/remotes/docker/auth
+github.com/containerd/containerd/remotes/docker/schema1
+github.com/containerd/containerd/remotes/errors
+github.com/containerd/containerd/rootfs
+github.com/containerd/containerd/runtime/linux/runctypes
+github.com/containerd/containerd/runtime/v2/runc/options
+github.com/containerd/containerd/sandbox
+github.com/containerd/containerd/sandbox/proxy
+github.com/containerd/containerd/services
+github.com/containerd/containerd/services/introspection
+github.com/containerd/containerd/services/warning
+github.com/containerd/containerd/snapshots
+github.com/containerd/containerd/snapshots/proxy
+github.com/containerd/containerd/tracing
+github.com/containerd/containerd/version
+github.com/containerd/continuity/fs
+github.com/containerd/errdefs
+github.com/containerd/fifo
+github.com/containerd/log
+github.com/containerd/platforms
+github.com/containerd/ttrpc
+github.com/containerd/typeurl/v2
+github.com/docker/go-events
+github.com/golang/groupcache/lru
+github.com/hashicorp/go-version
+github.com/klauspost/compress
+github.com/klauspost/compress/fse
+github.com/klauspost/compress/huff0
+github.com/klauspost/compress/internal/cpuinfo
+github.com/klauspost/compress/internal/snapref
+github.com/klauspost/compress/zstd
+github.com/klauspost/compress/zstd/internal/xxhash
+github.com/moby/locker
+github.com/moby/sys/mountinfo
+github.com/moby/sys/sequential
+github.com/moby/sys/signal
+github.com/moby/sys/user
+github.com/opencontainers/image-spec/identity
+github.com/opencontainers/runtime-spec/specs-go
+github.com/opencontainers/selinux/go-selinux
+github.com/opencontainers/selinux/go-selinux/label
+github.com/sirupsen/logrus
+go.opencensus.io
+go.opencensus.io/internal
+go.opencensus.io/trace
+go.opencensus.io/trace/internal
+go.opencensus.io/trace/tracestate
+go.opentelemetry.io/otel/semconv/v1.21.0
+golang.org/x/sync/semaphore
+google.golang.org/genproto/googleapis/rpc/code
+google.golang.org/grpc/health/grpc_health_v1
+k8s.io/cri-api/pkg/apis/runtime/v1
+k8s.io/cri-api/pkg/apis/runtime/v1alpha2

@pr-commenter
Copy link

pr-commenter bot commented Aug 28, 2024

Regression Detector

Regression Detector Results

Run ID: 080da16c-ee32-46dc-89de-2ac91aa1a853 Metrics dashboard Target profiles

Baseline: f74cad5
Comparison: 86e7ea2

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

No significant changes in experiment optimization goals

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI links
basic_py_check % cpu utilization +1.69 [-1.03, +4.41] Logs
pycheck_lots_of_tags % cpu utilization +0.53 [-1.99, +3.05] Logs
otel_to_otel_logs ingress throughput +0.10 [-0.72, +0.91] Logs
tcp_syslog_to_blackhole ingress throughput +0.06 [-12.92, +13.03] Logs
uds_dogstatsd_to_api ingress throughput -0.00 [-0.00, +0.00] Logs
tcp_dd_logs_filter_exclude ingress throughput -0.00 [-0.01, +0.01] Logs
idle memory utilization -0.10 [-0.15, -0.05] Logs
file_tree memory utilization -0.99 [-1.10, -0.87] Logs
uds_dogstatsd_to_api_cpu % cpu utilization -0.99 [-1.96, -0.02] Logs

Bounds Checks

perf experiment bounds_check_name replicates_passed
idle memory_usage 9/10

Explanation

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant