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

Enable sending host tags with metrics for a configurable duration #22467

Merged
merged 18 commits into from
Feb 16, 2024

Conversation

gh123man
Copy link
Member

@gh123man gh123man commented Jan 31, 2024

Add host tags to metrics when expected_tags_duration is configured. This matches the behavior of the logs agent.

What does this PR do?

Allows host tags to be added to all metrics for a configurable amount of time.

Summary of changes:

  • Move host tag code out of comp/metadata/host/hostimpl/utils/ and into it's own package to break a dependency cycle on the tagger. (Unrelated code in the util package was pulling in the tagger)
  • Inject host tags into the tagger with a configured expire time.

Motivation

Additional Notes

Ive benchmarked these changes with dogstatsd stress tests. There is approximately a 5% increase in agent CPU while the host tags are being attached. The CPU returns to baseline when the tags expire. NOTE: these results are likely heavily dependent on the number of host tags. Our benchmark env attaches many.

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

  1. Add the following settings to datadog.yaml
tags: "foo:bar"
expected_tags_duration: 1m
log_level: 'debug'
log_payloads: true 
  1. Start the agent, and tail the logs.
  2. grep for tags":
  3. For the first ~1m of the agent running you should see foo:bar tags on every metric logged in the payloads.
  4. After ~1m passes, you should no longer see these tags.

Reviewer's Checklist

  • If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
  • Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
  • A release note has been added or the changelog/no-changelog label has been applied.
  • Changed code has automated tests for its functionality.
  • Adequate QA/testing plan information is provided. Except if the qa/skip-qa label, with required either qa/done or qa/no-code-change labels, are applied.
  • At least one team/.. label has been applied, indicating the team(s) that should QA this change.
  • If applicable, docs team has been notified or an issue has been opened on the documentation repo.
  • If applicable, the need-change/operator and need-change/helm labels have been applied.
  • If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
  • If applicable, the config template has been updated.

Host tags are added to all metrics when `expected_tags_duration` is configured. This matches the behavior of the logs agent.
@gh123man gh123man added this to the 7.52.0 milestone Jan 31, 2024
Copy link

cit-pr-commenter bot commented Jan 31, 2024

Go Package Import Differences

Baseline: 38b9d04
Comparison: e85d769

binaryosarchchange
agentlinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
agentlinuxarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
agentwindowsamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
agentwindows386
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
agentdarwinamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
agentdarwinarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
iot-agentlinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
iot-agentlinuxarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
heroku-agentlinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
cluster-agentlinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
cluster-agentlinuxarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
cluster-agent-cloudfoundrylinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
cluster-agent-cloudfoundrylinuxarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
dogstatsdlinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
dogstatsdlinuxarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
process-agentlinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
process-agentlinuxarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
process-agentwindowsamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
process-agentdarwinamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
process-agentdarwinarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
heroku-process-agentlinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
security-agentlinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
security-agentlinuxarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
system-probelinuxamd64
+1, -170
-code.cloudfoundry.org/garden
-code.cloudfoundry.org/garden/client
-code.cloudfoundry.org/garden/client/connection
-code.cloudfoundry.org/garden/routes
-code.cloudfoundry.org/garden/transport
-code.cloudfoundry.org/lager
-contrib.go.opencensus.io/exporter/prometheus
-github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/utils
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
-github.com/DataDog/datadog-agent/comp/otelcol/otlp
-github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/exporter/serializerexporter
-github.com/DataDog/datadog-agent/comp/otelcol/otlp/internal/configutils
-github.com/DataDog/datadog-agent/comp/otelcol/otlp/internal/logsagentexporter
-github.com/DataDog/datadog-agent/pkg/collector/python
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/alibaba
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/cloudfoundry
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/ibm
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/kubernetes
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/oracle
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/tencent
-github.com/DataDog/datadog-agent/pkg/util/containers/metadata
-github.com/DataDog/datadog-agent/pkg/util/installinfo
-github.com/DataDog/datadog-agent/pkg/util/log/zap
-github.com/DataDog/datadog-api-client-go/v2
-github.com/DataDog/datadog-api-client-go/v2/api/datadog
-github.com/DataDog/datadog-api-client-go/v2/api/datadogV2
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics/internal/instrumentationlibrary
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics/internal/instrumentationscope
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics/internal/utils
-github.com/bmizerany/pat
-github.com/go-kit/log
-github.com/go-kit/log/level
-github.com/go-logfmt/logfmt
-github.com/mostynb/go-grpc-compression/internal/snappy
-github.com/mostynb/go-grpc-compression/internal/zstd
-github.com/mostynb/go-grpc-compression/nonclobbering/snappy
-github.com/mostynb/go-grpc-compression/nonclobbering/zstd
-github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry
-github.com/prometheus/statsd_exporter/pkg/level
-github.com/prometheus/statsd_exporter/pkg/mapper
-github.com/prometheus/statsd_exporter/pkg/mapper/fsm
-github.com/rs/cors
-github.com/stormcat24/protodep/pkg/logger
-github.com/tedsuo/rata
-go.opencensus.io/metric
-go.opencensus.io/metric/metricexport
-go.opentelemetry.io/collector/client
-go.opentelemetry.io/collector/config/configauth
-go.opentelemetry.io/collector/config/configcompression
-go.opentelemetry.io/collector/config/configgrpc
-go.opentelemetry.io/collector/config/confighttp
-go.opentelemetry.io/collector/config/confignet
-go.opentelemetry.io/collector/config/configopaque
-go.opentelemetry.io/collector/config/configtls
-go.opentelemetry.io/collector/config/internal
-go.opentelemetry.io/collector/confmap/converter/expandconverter
-go.opentelemetry.io/collector/confmap/provider/envprovider
-go.opentelemetry.io/collector/confmap/provider/fileprovider
-go.opentelemetry.io/collector/confmap/provider/httpprovider
-go.opentelemetry.io/collector/confmap/provider/httpsprovider
-go.opentelemetry.io/collector/confmap/provider/internal
-go.opentelemetry.io/collector/confmap/provider/internal/configurablehttpprovider
-go.opentelemetry.io/collector/confmap/provider/yamlprovider
-go.opentelemetry.io/collector/connector
-go.opentelemetry.io/collector/consumer
-go.opentelemetry.io/collector/consumer/consumererror
-go.opentelemetry.io/collector/exporter
-go.opentelemetry.io/collector/exporter/exporterhelper
-go.opentelemetry.io/collector/exporter/exporterhelper/internal
-go.opentelemetry.io/collector/exporter/internal/common
-go.opentelemetry.io/collector/exporter/internal/otlptext
-go.opentelemetry.io/collector/exporter/loggingexporter
-go.opentelemetry.io/collector/exporter/otlpexporter
-go.opentelemetry.io/collector/extension
-go.opentelemetry.io/collector/extension/auth
-go.opentelemetry.io/collector/extension/experimental/storage
-go.opentelemetry.io/collector/internal/fanoutconsumer
-go.opentelemetry.io/collector/internal/obsreportconfig
-go.opentelemetry.io/collector/internal/obsreportconfig/obsmetrics
-go.opentelemetry.io/collector/internal/sharedcomponent
-go.opentelemetry.io/collector/otelcol
-go.opentelemetry.io/collector/otelcol/internal/configunmarshaler
-go.opentelemetry.io/collector/otelcol/internal/grpclog
-go.opentelemetry.io/collector/pdata/internal/json
-go.opentelemetry.io/collector/pdata/internal/otlp
-go.opentelemetry.io/collector/pdata/plog
-go.opentelemetry.io/collector/pdata/plog/plogotlp
-go.opentelemetry.io/collector/pdata/pmetric
-go.opentelemetry.io/collector/pdata/pmetric/pmetricotlp
-go.opentelemetry.io/collector/pdata/ptrace
-go.opentelemetry.io/collector/pdata/ptrace/ptraceotlp
-go.opentelemetry.io/collector/processor
-go.opentelemetry.io/collector/processor/batchprocessor
-go.opentelemetry.io/collector/processor/processorhelper
-go.opentelemetry.io/collector/receiver
-go.opentelemetry.io/collector/receiver/otlpreceiver
-go.opentelemetry.io/collector/receiver/otlpreceiver/internal/logs
-go.opentelemetry.io/collector/receiver/otlpreceiver/internal/metrics
-go.opentelemetry.io/collector/receiver/otlpreceiver/internal/trace
-go.opentelemetry.io/collector/receiver/receiverhelper
-go.opentelemetry.io/collector/semconv/v1.18.0
-go.opentelemetry.io/collector/service
-go.opentelemetry.io/collector/service/extensions
-go.opentelemetry.io/collector/service/internal/capabilityconsumer
-go.opentelemetry.io/collector/service/internal/components
-go.opentelemetry.io/collector/service/internal/graph
-go.opentelemetry.io/collector/service/internal/proctelemetry
-go.opentelemetry.io/collector/service/internal/servicetelemetry
-go.opentelemetry.io/collector/service/internal/status
-go.opentelemetry.io/collector/service/internal/zpages
-go.opentelemetry.io/collector/service/pipelines
-go.opentelemetry.io/collector/service/telemetry
-go.opentelemetry.io/contrib/config
-go.opentelemetry.io/contrib/propagators/b3
-go.opentelemetry.io/otel/bridge/opencensus
-go.opentelemetry.io/otel/bridge/opencensus/internal
-go.opentelemetry.io/otel/bridge/opencensus/internal/oc2otel
-go.opentelemetry.io/otel/bridge/opencensus/internal/ocmetric
-go.opentelemetry.io/otel/bridge/opencensus/internal/otel2oc
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/envconfig
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/retry
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/transform
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/envconfig
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/oconf
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/retry
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/transform
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/envconfig
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/otlpconfig
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/retry
-go.opentelemetry.io/otel/exporters/stdout/stdoutmetric
-go.opentelemetry.io/otel/exporters/stdout/stdouttrace
-go.opentelemetry.io/otel/sdk/trace/tracetest
-go.opentelemetry.io/proto/otlp/collector/metrics/v1
-go.opentelemetry.io/proto/otlp/metrics/v1
-go.uber.org/zap/zapgrpc
-gonum.org/v1/gonum/blas
-gonum.org/v1/gonum/blas/blas64
-gonum.org/v1/gonum/blas/cblas128
-gonum.org/v1/gonum/blas/gonum
-gonum.org/v1/gonum/floats
-gonum.org/v1/gonum/floats/scalar
-gonum.org/v1/gonum/graph
-gonum.org/v1/gonum/graph/internal/linear
-gonum.org/v1/gonum/graph/internal/ordered
-gonum.org/v1/gonum/graph/internal/set
-gonum.org/v1/gonum/graph/iterator
-gonum.org/v1/gonum/graph/set/uid
-gonum.org/v1/gonum/graph/simple
-gonum.org/v1/gonum/graph/topo
-gonum.org/v1/gonum/graph/traverse
-gonum.org/v1/gonum/internal/asm/c128
-gonum.org/v1/gonum/internal/asm/c64
-gonum.org/v1/gonum/internal/asm/f32
-gonum.org/v1/gonum/internal/asm/f64
-gonum.org/v1/gonum/internal/cmplx64
-gonum.org/v1/gonum/internal/math32
-gonum.org/v1/gonum/lapack
-gonum.org/v1/gonum/lapack/gonum
-gonum.org/v1/gonum/lapack/lapack64
-gonum.org/v1/gonum/mat
-math/cmplx
system-probelinuxarm64
+1, -170
-code.cloudfoundry.org/garden
-code.cloudfoundry.org/garden/client
-code.cloudfoundry.org/garden/client/connection
-code.cloudfoundry.org/garden/routes
-code.cloudfoundry.org/garden/transport
-code.cloudfoundry.org/lager
-contrib.go.opencensus.io/exporter/prometheus
-github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/utils
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
-github.com/DataDog/datadog-agent/comp/otelcol/otlp
-github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/exporter/serializerexporter
-github.com/DataDog/datadog-agent/comp/otelcol/otlp/internal/configutils
-github.com/DataDog/datadog-agent/comp/otelcol/otlp/internal/logsagentexporter
-github.com/DataDog/datadog-agent/pkg/collector/python
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/alibaba
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/cloudfoundry
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/ibm
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/kubernetes
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/oracle
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/tencent
-github.com/DataDog/datadog-agent/pkg/util/containers/metadata
-github.com/DataDog/datadog-agent/pkg/util/installinfo
-github.com/DataDog/datadog-agent/pkg/util/log/zap
-github.com/DataDog/datadog-api-client-go/v2
-github.com/DataDog/datadog-api-client-go/v2/api/datadog
-github.com/DataDog/datadog-api-client-go/v2/api/datadogV2
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics/internal/instrumentationlibrary
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics/internal/instrumentationscope
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics/internal/utils
-github.com/bmizerany/pat
-github.com/go-kit/log
-github.com/go-kit/log/level
-github.com/go-logfmt/logfmt
-github.com/mostynb/go-grpc-compression/internal/snappy
-github.com/mostynb/go-grpc-compression/internal/zstd
-github.com/mostynb/go-grpc-compression/nonclobbering/snappy
-github.com/mostynb/go-grpc-compression/nonclobbering/zstd
-github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry
-github.com/prometheus/statsd_exporter/pkg/level
-github.com/prometheus/statsd_exporter/pkg/mapper
-github.com/prometheus/statsd_exporter/pkg/mapper/fsm
-github.com/rs/cors
-github.com/stormcat24/protodep/pkg/logger
-github.com/tedsuo/rata
-go.opencensus.io/metric
-go.opencensus.io/metric/metricexport
-go.opentelemetry.io/collector/client
-go.opentelemetry.io/collector/config/configauth
-go.opentelemetry.io/collector/config/configcompression
-go.opentelemetry.io/collector/config/configgrpc
-go.opentelemetry.io/collector/config/confighttp
-go.opentelemetry.io/collector/config/confignet
-go.opentelemetry.io/collector/config/configopaque
-go.opentelemetry.io/collector/config/configtls
-go.opentelemetry.io/collector/config/internal
-go.opentelemetry.io/collector/confmap/converter/expandconverter
-go.opentelemetry.io/collector/confmap/provider/envprovider
-go.opentelemetry.io/collector/confmap/provider/fileprovider
-go.opentelemetry.io/collector/confmap/provider/httpprovider
-go.opentelemetry.io/collector/confmap/provider/httpsprovider
-go.opentelemetry.io/collector/confmap/provider/internal
-go.opentelemetry.io/collector/confmap/provider/internal/configurablehttpprovider
-go.opentelemetry.io/collector/confmap/provider/yamlprovider
-go.opentelemetry.io/collector/connector
-go.opentelemetry.io/collector/consumer
-go.opentelemetry.io/collector/consumer/consumererror
-go.opentelemetry.io/collector/exporter
-go.opentelemetry.io/collector/exporter/exporterhelper
-go.opentelemetry.io/collector/exporter/exporterhelper/internal
-go.opentelemetry.io/collector/exporter/internal/common
-go.opentelemetry.io/collector/exporter/internal/otlptext
-go.opentelemetry.io/collector/exporter/loggingexporter
-go.opentelemetry.io/collector/exporter/otlpexporter
-go.opentelemetry.io/collector/extension
-go.opentelemetry.io/collector/extension/auth
-go.opentelemetry.io/collector/extension/experimental/storage
-go.opentelemetry.io/collector/internal/fanoutconsumer
-go.opentelemetry.io/collector/internal/obsreportconfig
-go.opentelemetry.io/collector/internal/obsreportconfig/obsmetrics
-go.opentelemetry.io/collector/internal/sharedcomponent
-go.opentelemetry.io/collector/otelcol
-go.opentelemetry.io/collector/otelcol/internal/configunmarshaler
-go.opentelemetry.io/collector/otelcol/internal/grpclog
-go.opentelemetry.io/collector/pdata/internal/json
-go.opentelemetry.io/collector/pdata/internal/otlp
-go.opentelemetry.io/collector/pdata/plog
-go.opentelemetry.io/collector/pdata/plog/plogotlp
-go.opentelemetry.io/collector/pdata/pmetric
-go.opentelemetry.io/collector/pdata/pmetric/pmetricotlp
-go.opentelemetry.io/collector/pdata/ptrace
-go.opentelemetry.io/collector/pdata/ptrace/ptraceotlp
-go.opentelemetry.io/collector/processor
-go.opentelemetry.io/collector/processor/batchprocessor
-go.opentelemetry.io/collector/processor/processorhelper
-go.opentelemetry.io/collector/receiver
-go.opentelemetry.io/collector/receiver/otlpreceiver
-go.opentelemetry.io/collector/receiver/otlpreceiver/internal/logs
-go.opentelemetry.io/collector/receiver/otlpreceiver/internal/metrics
-go.opentelemetry.io/collector/receiver/otlpreceiver/internal/trace
-go.opentelemetry.io/collector/receiver/receiverhelper
-go.opentelemetry.io/collector/semconv/v1.18.0
-go.opentelemetry.io/collector/service
-go.opentelemetry.io/collector/service/extensions
-go.opentelemetry.io/collector/service/internal/capabilityconsumer
-go.opentelemetry.io/collector/service/internal/components
-go.opentelemetry.io/collector/service/internal/graph
-go.opentelemetry.io/collector/service/internal/proctelemetry
-go.opentelemetry.io/collector/service/internal/servicetelemetry
-go.opentelemetry.io/collector/service/internal/status
-go.opentelemetry.io/collector/service/internal/zpages
-go.opentelemetry.io/collector/service/pipelines
-go.opentelemetry.io/collector/service/telemetry
-go.opentelemetry.io/contrib/config
-go.opentelemetry.io/contrib/propagators/b3
-go.opentelemetry.io/otel/bridge/opencensus
-go.opentelemetry.io/otel/bridge/opencensus/internal
-go.opentelemetry.io/otel/bridge/opencensus/internal/oc2otel
-go.opentelemetry.io/otel/bridge/opencensus/internal/ocmetric
-go.opentelemetry.io/otel/bridge/opencensus/internal/otel2oc
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/envconfig
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/retry
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/transform
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/envconfig
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/oconf
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/retry
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/transform
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/envconfig
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/otlpconfig
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/retry
-go.opentelemetry.io/otel/exporters/stdout/stdoutmetric
-go.opentelemetry.io/otel/exporters/stdout/stdouttrace
-go.opentelemetry.io/otel/sdk/trace/tracetest
-go.opentelemetry.io/proto/otlp/collector/metrics/v1
-go.opentelemetry.io/proto/otlp/metrics/v1
-go.uber.org/zap/zapgrpc
-gonum.org/v1/gonum/blas
-gonum.org/v1/gonum/blas/blas64
-gonum.org/v1/gonum/blas/cblas128
-gonum.org/v1/gonum/blas/gonum
-gonum.org/v1/gonum/floats
-gonum.org/v1/gonum/floats/scalar
-gonum.org/v1/gonum/graph
-gonum.org/v1/gonum/graph/internal/linear
-gonum.org/v1/gonum/graph/internal/ordered
-gonum.org/v1/gonum/graph/internal/set
-gonum.org/v1/gonum/graph/iterator
-gonum.org/v1/gonum/graph/set/uid
-gonum.org/v1/gonum/graph/simple
-gonum.org/v1/gonum/graph/topo
-gonum.org/v1/gonum/graph/traverse
-gonum.org/v1/gonum/internal/asm/c128
-gonum.org/v1/gonum/internal/asm/c64
-gonum.org/v1/gonum/internal/asm/f32
-gonum.org/v1/gonum/internal/asm/f64
-gonum.org/v1/gonum/internal/cmplx64
-gonum.org/v1/gonum/internal/math32
-gonum.org/v1/gonum/lapack
-gonum.org/v1/gonum/lapack/gonum
-gonum.org/v1/gonum/lapack/lapack64
-gonum.org/v1/gonum/mat
-math/cmplx
system-probewindowsamd64
+1, -185
-code.cloudfoundry.org/garden
-code.cloudfoundry.org/garden/client
-code.cloudfoundry.org/garden/client/connection
-code.cloudfoundry.org/garden/routes
-code.cloudfoundry.org/garden/transport
-code.cloudfoundry.org/lager
-contrib.go.opencensus.io/exporter/prometheus
-github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/utils
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
-github.com/DataDog/datadog-agent/comp/otelcol/otlp
-github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/exporter/serializerexporter
-github.com/DataDog/datadog-agent/comp/otelcol/otlp/internal/configutils
-github.com/DataDog/datadog-agent/comp/otelcol/otlp/internal/logsagentexporter
-github.com/DataDog/datadog-agent/pkg/collector/python
-github.com/DataDog/datadog-agent/pkg/gohai/cpu
-github.com/DataDog/datadog-agent/pkg/gohai/platform
-github.com/DataDog/datadog-agent/pkg/gohai/utils
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/alibaba
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/cloudfoundry
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/ibm
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/kubernetes
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/oracle
-github.com/DataDog/datadog-agent/pkg/util/cloudproviders/tencent
-github.com/DataDog/datadog-agent/pkg/util/containers/metadata
-github.com/DataDog/datadog-agent/pkg/util/installinfo
-github.com/DataDog/datadog-agent/pkg/util/log/zap
-github.com/DataDog/datadog-api-client-go/v2
-github.com/DataDog/datadog-api-client-go/v2/api/datadog
-github.com/DataDog/datadog-api-client-go/v2/api/datadogV2
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics/internal/instrumentationlibrary
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics/internal/instrumentationscope
-github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics/internal/utils
-github.com/bmizerany/pat
-github.com/briandowns/spinner
-github.com/go-kit/log
-github.com/go-kit/log/level
-github.com/go-logfmt/logfmt
-github.com/golang/snappy
-github.com/mostynb/go-grpc-compression/internal/snappy
-github.com/mostynb/go-grpc-compression/internal/zstd
-github.com/mostynb/go-grpc-compression/nonclobbering/snappy
-github.com/mostynb/go-grpc-compression/nonclobbering/zstd
-github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry
-github.com/prometheus/statsd_exporter/pkg/level
-github.com/prometheus/statsd_exporter/pkg/mapper
-github.com/prometheus/statsd_exporter/pkg/mapper/fsm
-github.com/rs/cors
-github.com/stormcat24/protodep/pkg/logger
-github.com/tedsuo/rata
-go.opencensus.io/internal/tagencoding
-go.opencensus.io/metric
-go.opencensus.io/metric/metricdata
-go.opencensus.io/metric/metricexport
-go.opencensus.io/metric/metricproducer
-go.opencensus.io/resource
-go.opencensus.io/stats
-go.opencensus.io/stats/internal
-go.opencensus.io/stats/view
-go.opencensus.io/tag
-go.opentelemetry.io/collector/client
-go.opentelemetry.io/collector/config/configauth
-go.opentelemetry.io/collector/config/configcompression
-go.opentelemetry.io/collector/config/configgrpc
-go.opentelemetry.io/collector/config/confighttp
-go.opentelemetry.io/collector/config/confignet
-go.opentelemetry.io/collector/config/configopaque
-go.opentelemetry.io/collector/config/configtls
-go.opentelemetry.io/collector/config/internal
-go.opentelemetry.io/collector/confmap/converter/expandconverter
-go.opentelemetry.io/collector/confmap/provider/envprovider
-go.opentelemetry.io/collector/confmap/provider/fileprovider
-go.opentelemetry.io/collector/confmap/provider/httpprovider
-go.opentelemetry.io/collector/confmap/provider/httpsprovider
-go.opentelemetry.io/collector/confmap/provider/internal
-go.opentelemetry.io/collector/confmap/provider/internal/configurablehttpprovider
-go.opentelemetry.io/collector/confmap/provider/yamlprovider
-go.opentelemetry.io/collector/connector
-go.opentelemetry.io/collector/consumer
-go.opentelemetry.io/collector/consumer/consumererror
-go.opentelemetry.io/collector/exporter
-go.opentelemetry.io/collector/exporter/exporterhelper
-go.opentelemetry.io/collector/exporter/exporterhelper/internal
-go.opentelemetry.io/collector/exporter/internal/common
-go.opentelemetry.io/collector/exporter/internal/otlptext
-go.opentelemetry.io/collector/exporter/loggingexporter
-go.opentelemetry.io/collector/exporter/otlpexporter
-go.opentelemetry.io/collector/extension
-go.opentelemetry.io/collector/extension/auth
-go.opentelemetry.io/collector/extension/experimental/storage
-go.opentelemetry.io/collector/internal/fanoutconsumer
-go.opentelemetry.io/collector/internal/obsreportconfig
-go.opentelemetry.io/collector/internal/obsreportconfig/obsmetrics
-go.opentelemetry.io/collector/internal/sharedcomponent
-go.opentelemetry.io/collector/otelcol
-go.opentelemetry.io/collector/otelcol/internal/configunmarshaler
-go.opentelemetry.io/collector/otelcol/internal/grpclog
-go.opentelemetry.io/collector/pdata/internal/json
-go.opentelemetry.io/collector/pdata/internal/otlp
-go.opentelemetry.io/collector/pdata/plog
-go.opentelemetry.io/collector/pdata/plog/plogotlp
-go.opentelemetry.io/collector/pdata/pmetric
-go.opentelemetry.io/collector/pdata/pmetric/pmetricotlp
-go.opentelemetry.io/collector/pdata/ptrace
-go.opentelemetry.io/collector/pdata/ptrace/ptraceotlp
-go.opentelemetry.io/collector/processor
-go.opentelemetry.io/collector/processor/batchprocessor
-go.opentelemetry.io/collector/processor/processorhelper
-go.opentelemetry.io/collector/receiver
-go.opentelemetry.io/collector/receiver/otlpreceiver
-go.opentelemetry.io/collector/receiver/otlpreceiver/internal/logs
-go.opentelemetry.io/collector/receiver/otlpreceiver/internal/metrics
-go.opentelemetry.io/collector/receiver/otlpreceiver/internal/trace
-go.opentelemetry.io/collector/receiver/receiverhelper
-go.opentelemetry.io/collector/semconv/v1.18.0
-go.opentelemetry.io/collector/service
-go.opentelemetry.io/collector/service/extensions
-go.opentelemetry.io/collector/service/internal/capabilityconsumer
-go.opentelemetry.io/collector/service/internal/components
-go.opentelemetry.io/collector/service/internal/graph
-go.opentelemetry.io/collector/service/internal/proctelemetry
-go.opentelemetry.io/collector/service/internal/servicetelemetry
-go.opentelemetry.io/collector/service/internal/status
-go.opentelemetry.io/collector/service/internal/zpages
-go.opentelemetry.io/collector/service/pipelines
-go.opentelemetry.io/collector/service/telemetry
-go.opentelemetry.io/contrib/config
-go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
-go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/internal
-go.opentelemetry.io/contrib/propagators/b3
-go.opentelemetry.io/otel/bridge/opencensus
-go.opentelemetry.io/otel/bridge/opencensus/internal
-go.opentelemetry.io/otel/bridge/opencensus/internal/oc2otel
-go.opentelemetry.io/otel/bridge/opencensus/internal/ocmetric
-go.opentelemetry.io/otel/bridge/opencensus/internal/otel2oc
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/envconfig
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/retry
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/transform
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/envconfig
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/oconf
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/retry
-go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp/internal/transform
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/envconfig
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/otlpconfig
-go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/retry
-go.opentelemetry.io/otel/exporters/stdout/stdoutmetric
-go.opentelemetry.io/otel/exporters/stdout/stdouttrace
-go.opentelemetry.io/otel/sdk/trace/tracetest
-go.opentelemetry.io/proto/otlp/collector/metrics/v1
-go.opentelemetry.io/proto/otlp/metrics/v1
-go.uber.org/zap/zapgrpc
-gonum.org/v1/gonum/blas
-gonum.org/v1/gonum/blas/blas64
-gonum.org/v1/gonum/blas/cblas128
-gonum.org/v1/gonum/blas/gonum
-gonum.org/v1/gonum/floats
-gonum.org/v1/gonum/floats/scalar
-gonum.org/v1/gonum/graph
-gonum.org/v1/gonum/graph/internal/linear
-gonum.org/v1/gonum/graph/internal/ordered
-gonum.org/v1/gonum/graph/internal/set
-gonum.org/v1/gonum/graph/iterator
-gonum.org/v1/gonum/graph/set/uid
-gonum.org/v1/gonum/graph/simple
-gonum.org/v1/gonum/graph/topo
-gonum.org/v1/gonum/graph/traverse
-gonum.org/v1/gonum/internal/asm/c128
-gonum.org/v1/gonum/internal/asm/c64
-gonum.org/v1/gonum/internal/asm/f32
-gonum.org/v1/gonum/internal/asm/f64
-gonum.org/v1/gonum/internal/cmplx64
-gonum.org/v1/gonum/internal/math32
-gonum.org/v1/gonum/lapack
-gonum.org/v1/gonum/lapack/gonum
-gonum.org/v1/gonum/lapack/lapack64
-gonum.org/v1/gonum/mat
-math/cmplx
trace-agentlinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
trace-agentlinuxarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
trace-agentwindowsamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
trace-agentwindows386
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
trace-agentdarwinamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
trace-agentdarwinarm64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags
heroku-trace-agentlinuxamd64
+2, -0
+github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors/internal/host
+github.com/DataDog/datadog-agent/comp/metadata/host/hostimpl/hosttags

@gh123man gh123man changed the title Attach host tags to metrics Enable sending host tags with metrics for a configurable duration Jan 31, 2024
@pr-commenter
Copy link

pr-commenter bot commented Jan 31, 2024

Bloop Bleep... Dogbot Here

Regression Detector Results

Run ID: cd3e955e-cb44-40a2-b5be-ad0759643705
Baseline: 38b9d04
Comparison: e85d769
Total CPUs: 7

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.

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI
file_to_blackhole % cpu utilization +1.76 [-4.86, +8.37]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI
file_to_blackhole % cpu utilization +1.76 [-4.86, +8.37]
tcp_syslog_to_blackhole ingress throughput +0.44 [+0.37, +0.50]
process_agent_real_time_mode memory utilization +0.40 [+0.35, +0.45]
idle memory utilization +0.24 [+0.21, +0.27]
process_agent_standard_check memory utilization +0.09 [+0.05, +0.13]
trace_agent_msgpack ingress throughput +0.03 [+0.02, +0.05]
uds_dogstatsd_to_api ingress throughput +0.00 [-0.00, +0.00]
tcp_dd_logs_filter_exclude ingress throughput +0.00 [-0.00, +0.00]
file_tree memory utilization -0.02 [-0.11, +0.06]
trace_agent_json ingress throughput -0.03 [-0.06, -0.00]
otel_to_otel_logs ingress throughput -0.11 [-0.70, +0.47]
process_agent_standard_check_with_stats memory utilization -0.49 [-0.53, -0.45]
uds_dogstatsd_to_api_cpu % cpu utilization -0.53 [-1.96, +0.89]

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".

@gh123man gh123man marked this pull request as ready for review February 5, 2024 15:53
@gh123man gh123man requested review from a team as code owners February 5, 2024 15:53
Copy link
Contributor

@dustmop dustmop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with some nits

comp/metadata/host/hostimpl/hosttags/tags.go Outdated Show resolved Hide resolved
pkg/config/setup/config.go Outdated Show resolved Hide resolved
comp/core/tagger/tagger.go Outdated Show resolved Hide resolved
@gh123man gh123man requested a review from scottopell February 12, 2024 17:39
Copy link
Member

@NouemanKHAL NouemanKHAL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for pkg/cloudfoundry/containertagger/container_tagger.go

Copy link
Contributor

@clamoriniere clamoriniere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @gh123man

I made some comments on how the functionality is integrated with the tagger. I proposed some change to make it more integrated with the current FWK and communication between Tagger and WorkloadMetaStore.

comp/core/tagger/collectors/workloadmeta_main.go Outdated Show resolved Hide resolved
comp/core/tagger/collectors/workloadmeta_main.go Outdated Show resolved Hide resolved
comp/core/tagger/tagger.go Outdated Show resolved Hide resolved
comp/core/tagger/tagstore/tagstore.go Outdated Show resolved Hide resolved
Copy link
Contributor

@clamoriniere clamoriniere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @gh123man

thanks for the PR update. It is implementation that I was looking for 👍
I added to few comments to be sure it is well integrated in workloadmetastore

comp/core/workloadmeta/collectors/internal/host/host.go Outdated Show resolved Hide resolved
comp/core/workloadmeta/collectors/internal/host/host.go Outdated Show resolved Hide resolved
comp/core/tagger/collectors/workloadmeta_extract.go Outdated Show resolved Hide resolved
move logic into pull function
Copy link
Contributor

@clamoriniere clamoriniere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few minor comments.

comp/core/workloadmeta/types.go Outdated Show resolved Hide resolved
return nil
}

tags := hostMetadataUtils.Get(ctx, false, c.config).System
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quick question hostmetadata package is not a component yet?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Host metadata is - but this function still depends on a bunch of non-component bits. So I assume that's the reason it has not yet been converted.
I think this would be on @DataDog/agent-shared-components roadmap.

Co-authored-by: Cedric Lamoriniere <[email protected]>
comp/core/workloadmeta/collectors/internal/host/host.go Outdated Show resolved Hide resolved
comp/core/workloadmeta/collectors/internal/host/host.go Outdated Show resolved Hide resolved
return nil
}

log.Debugf("Adding host tags to metrics for %v", duration)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was a warning here telling users that they set the duration too low. Was that not useful?

Copy link
Member Author

@gh123man gh123man Feb 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 1 min constraint is no longer relevant with the new design. I suppose I could add back a warning about it being < 0

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gh123man
Copy link
Member Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Feb 16, 2024

🚂 MergeQueue

Pull request added to the queue.

This build is going to start soon! (estimated merge in less than 49m)

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue bot merged commit 9bdb2dd into main Feb 16, 2024
168 checks passed
@dd-mergequeue dd-mergequeue bot deleted the brian/AMLII-1449-add-host-tags-to-metrics branch February 16, 2024 01:33
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.

7 participants