Skip to content

feat: [SVLS-8759] cloud run jobs usage metric#48454

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
mainfrom
aleksandr.pasechnik/svls-8759-crj-billing-metric
Mar 27, 2026
Merged

feat: [SVLS-8759] cloud run jobs usage metric#48454
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
mainfrom
aleksandr.pasechnik/svls-8759-crj-billing-metric

Conversation

@apiarian-datadog

Copy link
Copy Markdown
Contributor

What does this PR do?

Motivation

Describe how you validated your changes

Additional Notes

@apiarian-datadog
apiarian-datadog requested a review from a team as a code owner March 26, 2026 18:20
@dd-octo-sts dd-octo-sts Bot added the internal Identify a non-fork PR label Mar 26, 2026
@github-actions github-actions Bot added the short review PR is simple enough to be reviewed quickly label Mar 26, 2026
@apiarian-datadog apiarian-datadog added changelog/no-changelog No changelog entry needed team/serverless-azure-gcp and removed short review PR is simple enough to be reviewed quickly labels Mar 26, 2026
@agent-platform-auto-pr

agent-platform-auto-pr Bot commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Files inventory check summary

File checks results against ancestor 867176f1:

Results for datadog-agent_7.79.0~devel.git.217.e2cf1a5.pipeline.104666850-1_amd64.deb:

No change detected

@agent-platform-auto-pr

agent-platform-auto-pr Bot commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Static quality checks

✅ Please find below the results from static quality gates
Comparison made with ancestor 867176f
📊 Static Quality Gates Dashboard
🔗 SQG Job
SOME SIZE DELTAS ARE N/A (ANCESTOR METRICS NOT YET AVAILABLE). RETRY JOB

Successful checks

Info

Quality gate Change Size (prev → curr → max)
agent_deb_amd64 N/A N/A → 752.572 → 753.380
agent_deb_amd64_fips N/A N/A → 709.594 → 713.900
agent_heroku_amd64 N/A N/A → 313.301 → 320.580
agent_rpm_amd64 N/A N/A → 752.556 → 753.350
agent_rpm_amd64_fips N/A N/A → 709.577 → 713.880
agent_rpm_arm64 N/A N/A → 731.000 → 735.290
agent_rpm_arm64_fips N/A N/A → 691.023 → 696.840
agent_suse_amd64 N/A N/A → 752.556 → 753.350
agent_suse_amd64_fips N/A N/A → 709.577 → 713.880
agent_suse_arm64 N/A N/A → 731.000 → 735.290
agent_suse_arm64_fips N/A N/A → 691.023 → 696.840
docker_agent_amd64 N/A N/A → 812.874 → 815.700
docker_agent_arm64 N/A N/A → 816.089 → 821.970
docker_agent_jmx_amd64 N/A N/A → 1003.790 → 1006.580
docker_agent_jmx_arm64 N/A N/A → 995.783 → 1001.570
docker_cluster_agent_amd64 N/A N/A → 203.942 → 206.270
docker_cluster_agent_arm64 N/A N/A → 218.420 → 220.000
docker_cws_instrumentation_amd64 N/A N/A → 7.142 → 7.180
docker_cws_instrumentation_arm64 N/A N/A → 6.689 → 6.920
docker_dogstatsd_amd64 N/A N/A → 39.238 → 39.380
docker_dogstatsd_arm64 N/A N/A → 37.445 → 37.940
dogstatsd_deb_amd64 N/A N/A → 29.881 → 30.610
dogstatsd_deb_arm64 N/A N/A → 28.034 → 29.110
dogstatsd_rpm_amd64 N/A N/A → 29.881 → 30.610
dogstatsd_suse_amd64 N/A N/A → 29.881 → 30.610
iot_agent_deb_amd64 N/A N/A → 43.278 → 43.290
iot_agent_deb_arm64 N/A N/A → 40.324 → 40.920
iot_agent_deb_armhf N/A N/A → 41.076 → 41.100
iot_agent_rpm_amd64 N/A N/A → 43.278 → 43.290
iot_agent_suse_amd64 N/A N/A → 43.278 → 43.290
On-wire sizes (compressed)
Quality gate Change Size (prev → curr → max)
agent_deb_amd64 N/A N/A → 174.712 → 178.360
agent_deb_amd64_fips N/A N/A → 165.354 → 172.790
agent_heroku_amd64 N/A N/A → 75.004 → 79.970
agent_rpm_amd64 N/A N/A → 177.553 → 181.830
agent_rpm_amd64_fips N/A N/A → 167.628 → 173.370
agent_rpm_arm64 N/A N/A → 159.488 → 163.060
agent_rpm_arm64_fips N/A N/A → 151.351 → 156.170
agent_suse_amd64 N/A N/A → 177.553 → 181.830
agent_suse_amd64_fips N/A N/A → 167.628 → 173.370
agent_suse_arm64 N/A N/A → 159.488 → 163.060
agent_suse_arm64_fips N/A N/A → 151.351 → 156.170
docker_agent_amd64 N/A N/A → 268.105 → 272.480
docker_agent_arm64 N/A N/A → 255.295 → 261.060
docker_agent_jmx_amd64 N/A N/A → 336.754 → 341.100
docker_agent_jmx_arm64 N/A N/A → 319.928 → 325.620
docker_cluster_agent_amd64 N/A N/A → 71.373 → 72.920
docker_cluster_agent_arm64 N/A N/A → 67.013 → 68.220
docker_cws_instrumentation_amd64 N/A N/A → 2.999 → 3.330
docker_cws_instrumentation_arm64 N/A N/A → 2.729 → 3.090
docker_dogstatsd_amd64 N/A N/A → 15.174 → 15.820
docker_dogstatsd_arm64 N/A N/A → 14.494 → 14.830
dogstatsd_deb_amd64 N/A N/A → 7.893 → 8.790
dogstatsd_deb_arm64 N/A N/A → 6.778 → 7.710
dogstatsd_rpm_amd64 N/A N/A → 7.903 → 8.800
dogstatsd_suse_amd64 N/A N/A → 7.903 → 8.800
iot_agent_deb_amd64 N/A N/A → 11.399 → 12.040
iot_agent_deb_arm64 N/A N/A → 9.701 → 10.450
iot_agent_deb_armhf N/A N/A → 9.940 → 10.620
iot_agent_rpm_amd64 N/A N/A → 11.417 → 12.060
iot_agent_suse_amd64 N/A N/A → 11.417 → 12.060

@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented Mar 26, 2026

Copy link
Copy Markdown

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: 7e9e337a-d531-4d80-8431-9c71fc714a52

Baseline: 40f6310
Comparison: 5949a8c
Diff

Optimization Goals: ✅ No significant changes detected

Experiments ignored for regressions

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

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization +0.84 [-2.15, +3.83] 1 Logs

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
tcp_syslog_to_blackhole ingress throughput +2.12 [+1.99, +2.25] 1 Logs
quality_gate_logs % cpu utilization +1.79 [+0.16, +3.42] 1 Logs bounds checks dashboard
docker_containers_cpu % cpu utilization +0.84 [-2.15, +3.83] 1 Logs
docker_containers_memory memory utilization +0.56 [+0.49, +0.63] 1 Logs
quality_gate_metrics_logs memory utilization +0.26 [+0.03, +0.49] 1 Logs bounds checks dashboard
ddot_metrics_sum_cumulative memory utilization +0.15 [+0.01, +0.30] 1 Logs
otlp_ingest_metrics memory utilization +0.08 [-0.08, +0.24] 1 Logs
file_to_blackhole_0ms_latency egress throughput +0.07 [-0.44, +0.58] 1 Logs
ddot_metrics_sum_cumulativetodelta_exporter memory utilization +0.07 [-0.15, +0.29] 1 Logs
ddot_metrics_sum_delta memory utilization +0.06 [-0.11, +0.23] 1 Logs
file_to_blackhole_500ms_latency egress throughput +0.05 [-0.34, +0.45] 1 Logs
file_to_blackhole_1000ms_latency egress throughput +0.04 [-0.38, +0.46] 1 Logs
file_to_blackhole_100ms_latency egress throughput +0.02 [-0.05, +0.10] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput +0.00 [-0.11, +0.11] 1 Logs
uds_dogstatsd_to_api_v3 ingress throughput -0.00 [-0.19, +0.19] 1 Logs
uds_dogstatsd_to_api ingress throughput -0.00 [-0.20, +0.20] 1 Logs
quality_gate_idle memory utilization -0.02 [-0.07, +0.03] 1 Logs bounds checks dashboard
uds_dogstatsd_20mb_12k_contexts_20_senders memory utilization -0.07 [-0.13, -0.01] 1 Logs
quality_gate_idle_all_features memory utilization -0.10 [-0.14, -0.07] 1 Logs bounds checks dashboard
ddot_metrics memory utilization -0.16 [-0.33, +0.02] 1 Logs
otlp_ingest_logs memory utilization -0.42 [-0.52, -0.32] 1 Logs
file_tree memory utilization -0.49 [-0.55, -0.43] 1 Logs
ddot_logs memory utilization -0.67 [-0.74, -0.61] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed observed_value links
docker_containers_cpu simple_check_run 10/10 701 ≥ 26
docker_containers_memory memory_usage 10/10 276.66MiB ≤ 370MiB
docker_containers_memory simple_check_run 10/10 710 ≥ 26
file_to_blackhole_0ms_latency memory_usage 10/10 0.19GiB ≤ 1.20GiB
file_to_blackhole_0ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_1000ms_latency memory_usage 10/10 0.23GiB ≤ 1.20GiB
file_to_blackhole_1000ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_100ms_latency memory_usage 10/10 0.20GiB ≤ 1.20GiB
file_to_blackhole_100ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_500ms_latency memory_usage 10/10 0.21GiB ≤ 1.20GiB
file_to_blackhole_500ms_latency missed_bytes 10/10 0B = 0B
quality_gate_idle intake_connections 10/10 3 = 3 bounds checks dashboard
quality_gate_idle memory_usage 10/10 173.12MiB ≤ 175MiB bounds checks dashboard
quality_gate_idle_all_features intake_connections 10/10 3 = 3 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 492.43MiB ≤ 550MiB bounds checks dashboard
quality_gate_logs intake_connections 10/10 3 ≤ 6 bounds checks dashboard
quality_gate_logs memory_usage 10/10 202.61MiB ≤ 220MiB bounds checks dashboard
quality_gate_logs missed_bytes 10/10 0B = 0B bounds checks dashboard
quality_gate_metrics_logs cpu_usage 10/10 346.84 ≤ 2000 bounds checks dashboard
quality_gate_metrics_logs intake_connections 10/10 3 ≤ 6 bounds checks dashboard
quality_gate_metrics_logs memory_usage 10/10 431.61MiB ≤ 475MiB bounds checks dashboard
quality_gate_metrics_logs missed_bytes 10/10 0B = 0B bounds checks dashboard

Explanation

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

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

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

CI Pass/Fail Decision

Passed. All Quality Gates passed.

  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.

@apiarian-datadog
apiarian-datadog force-pushed the aleksandr.pasechnik/svls-8759-crj-billing-metric branch from e7f1e38 to e2cf1a5 Compare March 26, 2026 21:26
@github-actions github-actions Bot added the medium review PR review might take time label Mar 26, 2026
@apiarian-datadog apiarian-datadog added the qa/done QA done before merge and regressions are covered by tests label Mar 27, 2026
@apiarian-datadog

Copy link
Copy Markdown
Contributor Author

Confirmed that this all looks right with a few sample cloud run jobs

@apiarian-datadog

Copy link
Copy Markdown
Contributor Author

merging with @piyalibanerjee-dd 's approval

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 5949a8c into main Mar 27, 2026
241 of 242 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the aleksandr.pasechnik/svls-8759-crj-billing-metric branch March 27, 2026 15:05
@github-actions github-actions Bot added this to the 7.79.0 milestone Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog No changelog entry needed internal Identify a non-fork PR medium review PR review might take time qa/done QA done before merge and regressions are covered by tests team/serverless-azure-gcp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants