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

[AMLII-1988] Integrations collected from scheduler #28517

Merged
merged 21 commits into from
Aug 23, 2024

Conversation

soberpeach
Copy link
Contributor

@soberpeach soberpeach commented Aug 16, 2024

What does this PR do?

Fixes a vulnerability that allowed path traversal from integration logs coming form integrations logs configurations. This was because users could set arbitrary file names, including ../ which would allow path traversal the log file created by the integration launcher. This fix removes that logic and instead passes the integrationID produced in the python collector to the launcher, which avoids that problem.

Also fixes creating multiple files for a single config that contains multiple integration configs. Previously all integration configs were assumed to map to one possible integration, however with containers, it is possible to have multiple integrations each with the same configuration sending logs to the agent. This fix changes it so each integration with will have its own file.

Motivation

See above

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Create a check in checks.d like so:

custom_checkvalue.py:

from datadog_checks.base import AgentCheck
from datadog_checks.base.utils.time import get_timestamp

class HelloCheck(AgentCheck):
    def check(self, instance):
        data = dict()
        data['timestamp'] = get_timestamp()
        data['message'] = "Wow, this is a custom log message!"
        data['ddtags'] = "env:dev,bar:foo"
        self.gauge('qa.check.logs', 1)
        self.send_log(data)

and a configuration for it in conf.d like so

custom_checkvalue.yaml:

init_config:
instances:
  [{}]

logs:
  - type: integration
    source: my_source
    service: my_service

And run the agent. You should see logs coming from the custom check with the correct, source, service, and tags (env:dev, and bar:foo) applied.

@soberpeach soberpeach changed the title Brian/integrations scheduled from collector Integrations collected from scheduler Aug 16, 2024
@pr-commenter
Copy link

pr-commenter bot commented Aug 16, 2024

Regression Detector

Regression Detector Results

Run ID: 8276a12c-e504-42eb-b501-ecb05431eaca Metrics dashboard Target profiles

Baseline: 50a65d6
Comparison: 3e023e0

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 +0.27 [-2.39, +2.93] Logs
file_tree memory utilization +0.27 [+0.21, +0.33] Logs
otel_to_otel_logs ingress throughput +0.23 [-0.58, +1.04] 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.03 [-0.06, +0.00] Logs
pycheck_lots_of_tags % cpu utilization -0.99 [-3.38, +1.40] Logs
uds_dogstatsd_to_api_cpu % cpu utilization -1.20 [-1.99, -0.41] Logs
tcp_syslog_to_blackhole ingress throughput -2.44 [-15.11, +10.23] Logs

Bounds Checks

perf experiment bounds_check_name replicates_passed
idle memory_usage 10/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".

Tied to logs agent core lifecycle
Copy link

cit-pr-commenter bot commented Aug 16, 2024

Go Package Import Differences

Baseline: 50a65d6
Comparison: 3e023e0

binaryosarchchange
agentlinuxamd64
+0, -2
-github.com/DataDog/datadog-agent/comp/logs/integrations/fx
-github.com/DataDog/datadog-agent/comp/logs/integrations/mock
agentlinuxarm64
+0, -2
-github.com/DataDog/datadog-agent/comp/logs/integrations/fx
-github.com/DataDog/datadog-agent/comp/logs/integrations/mock
agentwindowsamd64
+0, -2
-github.com/DataDog/datadog-agent/comp/logs/integrations/fx
-github.com/DataDog/datadog-agent/comp/logs/integrations/mock
agentdarwinamd64
+0, -2
-github.com/DataDog/datadog-agent/comp/logs/integrations/fx
-github.com/DataDog/datadog-agent/comp/logs/integrations/mock
agentdarwinarm64
+0, -2
-github.com/DataDog/datadog-agent/comp/logs/integrations/fx
-github.com/DataDog/datadog-agent/comp/logs/integrations/mock
iot-agentlinuxamd64
+0, -2
-github.com/DataDog/datadog-agent/comp/logs/integrations/fx
-github.com/DataDog/datadog-agent/comp/logs/integrations/mock
iot-agentlinuxarm64
+0, -2
-github.com/DataDog/datadog-agent/comp/logs/integrations/fx
-github.com/DataDog/datadog-agent/comp/logs/integrations/mock
heroku-agentlinuxamd64
+0, -2
-github.com/DataDog/datadog-agent/comp/logs/integrations/fx
-github.com/DataDog/datadog-agent/comp/logs/integrations/mock
cluster-agentlinuxamd64
+3, -0
+github.com/DataDog/datadog-agent/comp/logs/integrations/impl
+github.com/DataDog/datadog-agent/pkg/logs/internal/util/adlistener
+github.com/DataDog/datadog-agent/pkg/logs/schedulers/ad
cluster-agentlinuxarm64
+3, -0
+github.com/DataDog/datadog-agent/comp/logs/integrations/impl
+github.com/DataDog/datadog-agent/pkg/logs/internal/util/adlistener
+github.com/DataDog/datadog-agent/pkg/logs/schedulers/ad
security-agentlinuxamd64
+3, -0
+github.com/DataDog/datadog-agent/comp/logs/integrations/impl
+github.com/DataDog/datadog-agent/pkg/logs/internal/util/adlistener
+github.com/DataDog/datadog-agent/pkg/logs/schedulers/ad
security-agentlinuxarm64
+3, -0
+github.com/DataDog/datadog-agent/comp/logs/integrations/impl
+github.com/DataDog/datadog-agent/pkg/logs/internal/util/adlistener
+github.com/DataDog/datadog-agent/pkg/logs/schedulers/ad
serverlesslinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/logs/integrations/impl
serverlesslinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/comp/logs/integrations/impl
system-probelinuxamd64
+36, -0
+github.com/DataDog/datadog-agent/comp/core/autodiscovery
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/common/types
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/common/utils
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/configresolver
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/listeners
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/providers
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/providers/names
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/scheduler
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/telemetry
+github.com/DataDog/datadog-agent/comp/logs/integrations/impl
+github.com/DataDog/datadog-agent/pkg/databasemonitoring/aws
+github.com/DataDog/datadog-agent/pkg/databasemonitoring/config
+github.com/DataDog/datadog-agent/pkg/logs/internal/util/adlistener
+github.com/DataDog/datadog-agent/pkg/logs/schedulers/ad
+github.com/DataDog/datadog-agent/pkg/persistentcache
+github.com/DataDog/datadog-agent/pkg/snmp
+github.com/DataDog/datadog-agent/pkg/snmp/gosnmplib
+github.com/DataDog/datadog-agent/pkg/snmp/snmpintegration
+github.com/armon/go-metrics
+github.com/aws/aws-sdk-go-v2/service/rds
+github.com/aws/aws-sdk-go-v2/service/rds/internal/endpoints
+github.com/aws/aws-sdk-go-v2/service/rds/types
+github.com/coreos/go-semver/semver
+github.com/gosnmp/gosnmp
+github.com/hashicorp/consul/api
+github.com/hashicorp/go-hclog
+github.com/hashicorp/go-immutable-radix
+github.com/hashicorp/go-rootcerts
+github.com/hashicorp/golang-lru/simplelru
+github.com/hashicorp/serf/coordinate
+github.com/samuel/go-zookeeper/zk
+go.etcd.io/etcd/api/v3/version
+go.etcd.io/etcd/client/pkg/v3/pathutil
+go.etcd.io/etcd/client/pkg/v3/srv
+go.etcd.io/etcd/client/pkg/v3/types
+go.etcd.io/etcd/client/v2
system-probelinuxarm64
+36, -0
+github.com/DataDog/datadog-agent/comp/core/autodiscovery
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/common/types
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/common/utils
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/configresolver
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/listeners
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/providers
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/providers/names
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/scheduler
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/telemetry
+github.com/DataDog/datadog-agent/comp/logs/integrations/impl
+github.com/DataDog/datadog-agent/pkg/databasemonitoring/aws
+github.com/DataDog/datadog-agent/pkg/databasemonitoring/config
+github.com/DataDog/datadog-agent/pkg/logs/internal/util/adlistener
+github.com/DataDog/datadog-agent/pkg/logs/schedulers/ad
+github.com/DataDog/datadog-agent/pkg/persistentcache
+github.com/DataDog/datadog-agent/pkg/snmp
+github.com/DataDog/datadog-agent/pkg/snmp/gosnmplib
+github.com/DataDog/datadog-agent/pkg/snmp/snmpintegration
+github.com/armon/go-metrics
+github.com/aws/aws-sdk-go-v2/service/rds
+github.com/aws/aws-sdk-go-v2/service/rds/internal/endpoints
+github.com/aws/aws-sdk-go-v2/service/rds/types
+github.com/coreos/go-semver/semver
+github.com/gosnmp/gosnmp
+github.com/hashicorp/consul/api
+github.com/hashicorp/go-hclog
+github.com/hashicorp/go-immutable-radix
+github.com/hashicorp/go-rootcerts
+github.com/hashicorp/golang-lru/simplelru
+github.com/hashicorp/serf/coordinate
+github.com/samuel/go-zookeeper/zk
+go.etcd.io/etcd/api/v3/version
+go.etcd.io/etcd/client/pkg/v3/pathutil
+go.etcd.io/etcd/client/pkg/v3/srv
+go.etcd.io/etcd/client/pkg/v3/types
+go.etcd.io/etcd/client/v2
system-probewindowsamd64
+64, -0
+github.com/DataDog/datadog-agent/comp/core/autodiscovery
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/common/types
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/common/utils
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/configresolver
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/listeners
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/providers
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/providers/names
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/scheduler
+github.com/DataDog/datadog-agent/comp/core/autodiscovery/telemetry
+github.com/DataDog/datadog-agent/comp/logs/integrations/impl
+github.com/DataDog/datadog-agent/pkg/collector/check/id
+github.com/DataDog/datadog-agent/pkg/databasemonitoring/aws
+github.com/DataDog/datadog-agent/pkg/databasemonitoring/config
+github.com/DataDog/datadog-agent/pkg/logs/internal/util/adlistener
+github.com/DataDog/datadog-agent/pkg/logs/schedulers/ad
+github.com/DataDog/datadog-agent/pkg/persistentcache
+github.com/DataDog/datadog-agent/pkg/snmp
+github.com/DataDog/datadog-agent/pkg/snmp/gosnmplib
+github.com/DataDog/datadog-agent/pkg/snmp/snmpintegration
+github.com/armon/go-metrics
+github.com/aws/aws-sdk-go-v2/aws/protocol/restjson
+github.com/aws/aws-sdk-go-v2/aws/protocol/xml
+github.com/aws/aws-sdk-go-v2/config
+github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds
+github.com/aws/aws-sdk-go-v2/credentials/endpointcreds
+github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client
+github.com/aws/aws-sdk-go-v2/credentials/processcreds
+github.com/aws/aws-sdk-go-v2/credentials/ssocreds
+github.com/aws/aws-sdk-go-v2/credentials/stscreds
+github.com/aws/aws-sdk-go-v2/feature/ec2/imds
+github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/config
+github.com/aws/aws-sdk-go-v2/internal/ini
+github.com/aws/aws-sdk-go-v2/internal/sdkio
+github.com/aws/aws-sdk-go-v2/internal/shareddefaults
+github.com/aws/aws-sdk-go-v2/service/rds
+github.com/aws/aws-sdk-go-v2/service/rds/internal/endpoints
+github.com/aws/aws-sdk-go-v2/service/rds/types
+github.com/aws/aws-sdk-go-v2/service/sso
+github.com/aws/aws-sdk-go-v2/service/sso/internal/endpoints
+github.com/aws/aws-sdk-go-v2/service/sso/types
+github.com/aws/aws-sdk-go-v2/service/ssooidc
+github.com/aws/aws-sdk-go-v2/service/ssooidc/internal/endpoints
+github.com/aws/aws-sdk-go-v2/service/ssooidc/types
+github.com/aws/aws-sdk-go-v2/service/sts
+github.com/aws/aws-sdk-go-v2/service/sts/internal/endpoints
+github.com/aws/aws-sdk-go-v2/service/sts/types
+github.com/aws/smithy-go/encoding/json
+github.com/aws/smithy-go/private/requestcompression
+github.com/coreos/go-semver/semver
+github.com/golang/mock/gomock
+github.com/gosnmp/gosnmp
+github.com/hashicorp/consul/api
+github.com/hashicorp/go-cleanhttp
+github.com/hashicorp/go-hclog
+github.com/hashicorp/go-immutable-radix
+github.com/hashicorp/go-rootcerts
+github.com/hashicorp/golang-lru/simplelru
+github.com/hashicorp/serf/coordinate
+github.com/samuel/go-zookeeper/zk
+go.etcd.io/etcd/api/v3/version
+go.etcd.io/etcd/client/pkg/v3/pathutil
+go.etcd.io/etcd/client/pkg/v3/srv
+go.etcd.io/etcd/client/pkg/v3/types
+go.etcd.io/etcd/client/v2

@pr-commenter
Copy link

pr-commenter bot commented Aug 16, 2024

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

inv create-vm --pipeline-id=42704789 --os-family=ubuntu

Note: This applies to commit 3e023e0

pkg/logs/launchers/integration/launcher.go Outdated Show resolved Hide resolved
pkg/logs/launchers/integration/launcher.go Outdated Show resolved Hide resolved
pkg/logs/launchers/integration/launcher.go Outdated Show resolved Hide resolved
@soberpeach soberpeach changed the title Integrations collected from scheduler [AMLII-1988] Integrations collected from scheduler Aug 19, 2024
@soberpeach soberpeach marked this pull request as ready for review August 19, 2024 21:10
@soberpeach soberpeach requested review from a team as code owners August 19, 2024 21:10
@soberpeach soberpeach requested a review from a team as a code owner August 19, 2024 21:10
Copy link
Member

@pgimalac pgimalac 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 ASC files

@soberpeach
Copy link
Contributor Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Aug 23, 2024

🚂 MergeQueue: waiting for PR to be ready

This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.

Use /merge -c to cancel this operation!

@soberpeach
Copy link
Contributor Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Aug 23, 2024

🚂 MergeQueue: waiting for PR to be ready

This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.

Use /merge -c to cancel this operation!

Copy link
Contributor

Serverless Benchmark Results

BenchmarkStartEndInvocation comparison between 50a65d6 and acd03be.

tl;dr

Use these benchmarks as an insight tool during development.

  1. Skim down the vs base column in each chart. If there is a ~, then there was no statistically significant change to the benchmark. Otherwise, ensure the estimated percent change is either negative or very small.

  2. The last row of each chart is the geomean. Ensure this percentage is either negative or very small.

What is this benchmarking?

The BenchmarkStartEndInvocation compares the amount of time it takes to call the start-invocation and end-invocation endpoints. For universal instrumentation languages (Dotnet, Golang, Java, Ruby), this represents the majority of the duration overhead added by our tracing layer.

The benchmark is run using a large variety of lambda request payloads. In the charts below, there is one row for each event payload type.

How do I interpret these charts?

The charts below comes from benchstat. They represent the statistical change in duration (sec/op), memory overhead (B/op), and allocations (allocs/op).

The benchstat docs explain how to interpret these charts.

Before the comparison table, we see common file-level configuration. If there are benchmarks with different configuration (for example, from different packages), benchstat will print separate tables for each configuration.

The table then compares the two input files for each benchmark. It shows the median and 95% confidence interval summaries for each benchmark before and after the change, and an A/B comparison under "vs base". ... The p-value measures how likely it is that any differences were due to random chance (i.e., noise). The "~" means benchstat did not detect a statistically significant difference between the two inputs. ...

Note that "statistically significant" is not the same as "large": with enough low-noise data, even very small changes can be distinguished from noise and considered statistically significant. It is, of course, generally easier to distinguish large changes from noise.

Finally, the last row of the table shows the geometric mean of each column, giving an overall picture of how the benchmarks changed. Proportional changes in the geomean reflect proportional changes in the benchmarks. For example, given n benchmarks, if sec/op for one of them increases by a factor of 2, then the sec/op geomean will increase by a factor of ⁿ√2.

I need more help

First off, do not worry if the benchmarks are failing. They are not tests. The intention is for them to be a tool for you to use during development.

If you would like a hand interpreting the results come chat with us in #serverless-agent in the internal DataDog slack or in #serverless in the public DataDog slack. We're happy to help!

Benchmark stats
goos: linux
goarch: amd64
pkg: github.com/DataDog/datadog-agent/pkg/serverless/daemon
cpu: AMD EPYC 7763 64-Core Processor                
                                      │ baseline/benchmark.log │       current/benchmark.log        │
                                      │         sec/op         │   sec/op     vs base               │
api-gateway-appsec.json                            83.88µ ± 7%   87.20µ ± 5%  +3.96% (p=0.035 n=10)
api-gateway-kong-appsec.json                       65.85µ ± 1%   67.56µ ± 1%  +2.60% (p=0.000 n=10)
api-gateway-kong.json                              63.79µ ± 1%   65.98µ ± 2%  +3.43% (p=0.000 n=10)
api-gateway-non-proxy-async.json                   102.6µ ± 1%   104.7µ ± 1%  +2.05% (p=0.005 n=10)
api-gateway-non-proxy.json                         101.7µ ± 1%   104.8µ ± 1%  +3.04% (p=0.000 n=10)
api-gateway-websocket-connect.json                 67.84µ ± 1%   69.98µ ± 1%  +3.15% (p=0.000 n=10)
api-gateway-websocket-default.json                 60.91µ ± 1%   62.62µ ± 1%  +2.81% (p=0.000 n=10)
api-gateway-websocket-disconnect.json              61.55µ ± 2%   62.41µ ± 1%  +1.40% (p=0.009 n=10)
api-gateway.json                                   113.4µ ± 3%   114.1µ ± 1%       ~ (p=0.684 n=10)
application-load-balancer.json                     61.31µ ± 1%   63.74µ ± 1%  +3.96% (p=0.002 n=10)
cloudfront.json                                    46.05µ ± 3%   47.45µ ± 2%  +3.04% (p=0.002 n=10)
cloudwatch-events.json                             37.57µ ± 2%   38.57µ ± 2%  +2.65% (p=0.011 n=10)
cloudwatch-logs.json                               65.64µ ± 2%   65.54µ ± 2%       ~ (p=0.481 n=10)
custom.json                                        30.37µ ± 1%   31.39µ ± 2%  +3.37% (p=0.001 n=10)
dynamodb.json                                      93.41µ ± 2%   92.09µ ± 1%  -1.41% (p=0.002 n=10)
empty.json                                         29.11µ ± 2%   29.73µ ± 2%  +2.13% (p=0.001 n=10)
eventbridge-custom.json                            41.92µ ± 2%   42.26µ ± 2%       ~ (p=0.190 n=10)
http-api.json                                      72.13µ ± 1%   72.25µ ± 1%       ~ (p=0.912 n=10)
kinesis-batch.json                                 71.33µ ± 1%   70.00µ ± 1%  -1.87% (p=0.000 n=10)
kinesis.json                                       54.44µ ± 2%   53.88µ ± 1%       ~ (p=0.190 n=10)
s3.json                                            60.20µ ± 2%   58.78µ ± 1%  -2.36% (p=0.000 n=10)
sns-batch.json                                     90.86µ ± 2%   87.54µ ± 2%  -3.65% (p=0.000 n=10)
sns.json                                           65.08µ ± 1%   63.69µ ± 2%  -2.14% (p=0.002 n=10)
snssqs.json                                        111.1µ ± 1%   111.5µ ± 1%       ~ (p=0.481 n=10)
snssqs_no_dd_context.json                          98.60µ ± 2%   97.14µ ± 1%  -1.49% (p=0.015 n=10)
sqs-aws-header.json                                55.13µ ± 1%   55.02µ ± 2%       ~ (p=0.971 n=10)
sqs-batch.json                                     95.26µ ± 2%   92.75µ ± 2%  -2.63% (p=0.000 n=10)
sqs.json                                           68.58µ ± 2%   69.02µ ± 2%       ~ (p=0.971 n=10)
sqs_no_dd_context.json                             62.55µ ± 2%   62.85µ ± 1%       ~ (p=0.684 n=10)
geomean                                            66.17µ        66.69µ       +0.79%

                                      │ baseline/benchmark.log │        current/benchmark.log        │
                                      │          B/op          │     B/op      vs base               │
api-gateway-appsec.json                           37.26Ki ± 0%   37.32Ki ± 0%  +0.18% (p=0.000 n=10)
api-gateway-kong-appsec.json                      26.92Ki ± 0%   26.92Ki ± 0%       ~ (p=0.540 n=10)
api-gateway-kong.json                             24.41Ki ± 0%   24.42Ki ± 0%       ~ (p=0.324 n=10)
api-gateway-non-proxy-async.json                  48.03Ki ± 0%   48.09Ki ± 0%  +0.11% (p=0.000 n=10)
api-gateway-non-proxy.json                        47.25Ki ± 0%   47.31Ki ± 0%  +0.13% (p=0.000 n=10)
api-gateway-websocket-connect.json                25.46Ki ± 0%   25.49Ki ± 0%  +0.13% (p=0.000 n=10)
api-gateway-websocket-default.json                21.36Ki ± 0%   21.40Ki ± 0%  +0.16% (p=0.000 n=10)
api-gateway-websocket-disconnect.json             21.15Ki ± 0%   21.18Ki ± 0%  +0.12% (p=0.000 n=10)
api-gateway.json                                  49.56Ki ± 0%   49.56Ki ± 0%       ~ (p=0.753 n=10)
application-load-balancer.json                    22.32Ki ± 0%   23.27Ki ± 0%  +4.24% (p=0.000 n=10)
cloudfront.json                                   17.64Ki ± 0%   17.66Ki ± 0%  +0.11% (p=0.001 n=10)
cloudwatch-events.json                            11.68Ki ± 0%   11.72Ki ± 0%  +0.28% (p=0.000 n=10)
cloudwatch-logs.json                              53.36Ki ± 0%   53.36Ki ± 0%       ~ (p=0.810 n=10)
custom.json                                       9.718Ki ± 0%   9.722Ki ± 0%       ~ (p=0.839 n=10)
dynamodb.json                                     40.77Ki ± 0%   40.78Ki ± 0%       ~ (p=0.240 n=10)
empty.json                                        9.279Ki ± 0%   9.286Ki ± 0%       ~ (p=0.579 n=10)
eventbridge-custom.json                           13.40Ki ± 0%   13.43Ki ± 0%  +0.17% (p=0.007 n=10)
http-api.json                                     23.73Ki ± 0%   23.77Ki ± 0%  +0.20% (p=0.000 n=10)
kinesis-batch.json                                27.02Ki ± 0%   27.03Ki ± 0%       ~ (p=0.468 n=10)
kinesis.json                                      17.79Ki ± 0%   17.80Ki ± 0%       ~ (p=0.190 n=10)
s3.json                                           20.35Ki ± 0%   20.36Ki ± 0%       ~ (p=0.494 n=10)
sns-batch.json                                    38.70Ki ± 0%   38.64Ki ± 0%  -0.16% (p=0.015 n=10)
sns.json                                          23.96Ki ± 0%   23.93Ki ± 0%       ~ (p=0.436 n=10)
snssqs.json                                       50.71Ki ± 0%   50.80Ki ± 0%  +0.17% (p=0.003 n=10)
snssqs_no_dd_context.json                         44.79Ki ± 0%   44.83Ki ± 0%       ~ (p=0.288 n=10)
sqs-aws-header.json                               18.81Ki ± 1%   18.78Ki ± 0%       ~ (p=0.424 n=10)
sqs-batch.json                                    41.63Ki ± 0%   41.57Ki ± 0%       ~ (p=0.739 n=10)
sqs.json                                          25.56Ki ± 0%   25.54Ki ± 0%       ~ (p=1.000 n=10)
sqs_no_dd_context.json                            20.65Ki ± 1%   20.64Ki ± 1%       ~ (p=0.837 n=10)
geomean                                           25.70Ki        25.75Ki       +0.19%

                                      │ baseline/benchmark.log │        current/benchmark.log        │
                                      │       allocs/op        │ allocs/op   vs base                 │
api-gateway-appsec.json                             629.0 ± 0%   629.5 ± 0%       ~ (p=1.000 n=10)
api-gateway-kong-appsec.json                        488.0 ± 0%   488.0 ± 0%       ~ (p=1.000 n=10)
api-gateway-kong.json                               466.0 ± 0%   466.0 ± 0%       ~ (p=1.000 n=10) ¹
api-gateway-non-proxy-async.json                    725.5 ± 0%   725.0 ± 0%       ~ (p=1.000 n=10)
api-gateway-non-proxy.json                          716.0 ± 0%   716.0 ± 0%       ~ (p=1.000 n=10)
api-gateway-websocket-connect.json                  453.0 ± 0%   453.0 ± 0%       ~ (p=1.000 n=10) ¹
api-gateway-websocket-default.json                  379.0 ± 0%   379.0 ± 0%       ~ (p=1.000 n=10) ¹
api-gateway-websocket-disconnect.json               370.0 ± 0%   370.0 ± 0%       ~ (p=1.000 n=10)
api-gateway.json                                    791.0 ± 0%   791.0 ± 0%       ~ (p=0.628 n=10)
application-load-balancer.json                      352.0 ± 0%   353.0 ± 0%  +0.28% (p=0.000 n=10)
cloudfront.json                                     284.0 ± 0%   284.0 ± 0%       ~ (p=1.000 n=10)
cloudwatch-events.json                              220.0 ± 0%   220.0 ± 0%       ~ (p=1.000 n=10) ¹
cloudwatch-logs.json                                215.0 ± 0%   215.0 ± 0%       ~ (p=1.000 n=10)
custom.json                                         168.0 ± 1%   168.0 ± 0%       ~ (p=0.124 n=10)
dynamodb.json                                       589.0 ± 0%   589.0 ± 0%       ~ (p=0.076 n=10)
empty.json                                          160.0 ± 1%   159.5 ± 0%       ~ (p=1.000 n=10)
eventbridge-custom.json                             254.0 ± 0%   253.5 ± 0%       ~ (p=0.650 n=10)
http-api.json                                       432.5 ± 0%   432.0 ± 0%       ~ (p=0.650 n=10)
kinesis-batch.json                                  391.0 ± 0%   390.0 ± 0%       ~ (p=0.370 n=10)
kinesis.json                                        285.0 ± 0%   284.5 ± 0%       ~ (p=0.650 n=10)
s3.json                                             358.0 ± 0%   357.0 ± 0%       ~ (p=0.465 n=10)
sns-batch.json                                      455.0 ± 0%   454.5 ± 0%  -0.11% (p=0.009 n=10)
sns.json                                            323.0 ± 1%   322.0 ± 1%       ~ (p=0.555 n=10)
snssqs.json                                         450.0 ± 0%   450.0 ± 0%       ~ (p=0.614 n=10)
snssqs_no_dd_context.json                           399.0 ± 1%   399.0 ± 0%       ~ (p=0.223 n=10)
sqs-aws-header.json                                 274.0 ± 1%   273.5 ± 1%       ~ (p=0.427 n=10)
sqs-batch.json                                      503.0 ± 0%   502.5 ± 0%       ~ (p=0.591 n=10)
sqs.json                                            351.0 ± 0%   351.0 ± 0%       ~ (p=1.000 n=10)
sqs_no_dd_context.json                              324.0 ± 1%   323.5 ± 1%       ~ (p=0.881 n=10)
geomean                                             376.7        376.5       -0.07%
¹ all samples are equal

@dd-devflow
Copy link

dd-devflow bot commented Aug 23, 2024

🚂 MergeQueue: pull request added to the queue

The median merge time in main is 22m.

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue bot merged commit e1b7c59 into main Aug 23, 2024
218 of 232 checks passed
@dd-mergequeue dd-mergequeue bot deleted the brian/integrations-scheduled-from-collector branch August 23, 2024 17:18
@github-actions github-actions bot added this to the 7.58.0 milestone Aug 23, 2024
@agent-platform-auto-pr
Copy link
Contributor

The backport to 7.57.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-7.57.x 7.57.x
# Navigate to the new working tree
cd .worktrees/backport-7.57.x
# Create a new branch
git switch --create backport-28517-to-7.57.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 e1b7c5943023f1cbee8f51bf5cb34ae77b09ae1e
# Push it to GitHub
git push --set-upstream origin backport-28517-to-7.57.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-7.57.x

Then, create a pull request where the base branch is 7.57.x and the compare/head branch is backport-28517-to-7.57.x.

soberpeach added a commit that referenced this pull request Aug 23, 2024
Co-authored-by: carlosroman <carlos.roman@datadoghq.com>
Co-authored-by: gh123man <brian.floersch@datadoghq.com>
(cherry picked from commit e1b7c59)
@FlorentClarret FlorentClarret mentioned this pull request Sep 17, 2024
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.

6 participants