datadog-gpu-benchmark

by Datadog

Helm chartv0.2.0App 0.1.0Verified publisherOfficial

Prepares a namespace where Datadog GPU Monitoring runs inference benchmarks, through the Cluster Agent's Private Action Runner

About this chart

Datadog GPU Benchmark

Overview

Datadog GPU Monitoring can benchmark your inference endpoints from inside your cluster: it measures time to first token, time per output token and throughput under load, next to your GPU and inference server metrics.

Each benchmark run is one Kubernetes Job, which Datadog creates in the datadog-gpu-benchmark namespace through the Private Action Runner of your Cluster Agent, and deletes when the run ends. The Job runs Datadog's benchmark image (based on NVIDIA AIPerf) and reports through its logs: it never calls the Kubernetes API, and Datadog never reads anything else in your cluster.

This chart gives the Cluster Agent what it needs in that namespace:

ResourcePurpose
ServiceAccount datadog-gpu-benchmark-runRuns benchmark pods, with no role and no token
Role and RoleBinding cluster-agent-gpu-benchmarkLets the Cluster Agent's ServiceAccount create, read and delete Jobs, read their pods and logs, and read the pod overrides, in this namespace only
ConfigMap datadog-gpu-benchmark-podPlacement, labels and image mirror for benchmark pods (podOverrides)

Prerequisites

  • The Datadog Cluster Agent 7.85+ (the first release with the getPodLogs action) with its Private Action Runner enabled, and the benchmark actions allowed. With the datadog chart:

    clusterAgent:
      privateActionRunner:
        enabled: true
        actionsAllowlist:
          - com.datadoghq.kubernetes.batch.createJob
          - com.datadoghq.kubernetes.batch.getJob
          - com.datadoghq.kubernetes.batch.deleteJob
          - com.datadoghq.kubernetes.core.listPod
          - com.datadoghq.kubernetes.core.getPodLogs
          - com.datadoghq.kubernetes.core.getConfigMap
    
  • CPU capacity for the runs: benchmark pods need no GPU.

Installation

helm repo add datadog https://helm.datadoghq.com
helm repo update
helm install datadog-gpu-benchmark datadog/datadog-gpu-benchmark \
  --namespace datadog-gpu-benchmark --create-namespace \
  --set clusterAgent.namespace=<cluster agent namespace> \
  --set clusterAgent.serviceAccount=<cluster agent ServiceAccount>

The chart must be installed in the datadog-gpu-benchmark namespace: Datadog creates the benchmark Jobs there. Benchmark pods run non-root, with no capabilities and a read-only root filesystem, so the namespace can enforce Pod Security restricted:

kubectl label namespace datadog-gpu-benchmark pod-security.kubernetes.io/enforce=restricted

The Cluster Agent's ServiceAccount is <release>-cluster-agent when you install the Agent with the datadog chart, and <DatadogAgent name>-cluster-agent with the Datadog Operator: kubectl get serviceaccounts -A | grep cluster-agent lists it.

Placement

Keep benchmark pods off your GPU nodes and away from inference workloads with podOverrides, for example on a tainted CPU node pool:

podOverrides:
  nodeSelector:
    node-pool: cpu
  tolerations:
    - key: dedicated
      operator: Equal
      value: benchmarks
      effect: NoSchedule

Image mirror

If your cluster can't pull from Datadog's public registries, mirror the image and set podOverrides.imageRepository (and podOverrides.imagePullSecrets if needed). Datadog keeps the image digest, so the mirror must hold that exact image.

Datasets

Runs can replay your own traffic (Mooncake or Weka traces) instead of synthetic prompts. In your cluster, a dataset stays on a PersistentVolumeClaim of the datadog-gpu-benchmark namespace: benchmark pods mount it read-only, and its content never leaves your cluster. Set datasetVolume.enabled to have the chart create the datadog-gpu-benchmark-datasets claim, or use a claim of your own in the namespace. The claim is kept when the release is uninstalled.

datasetVolume:
  enabled: true
  storageClassName: efs   # your cluster's default when unset
  size: 100Gi

Copy a dataset onto the claim with a short-lived pod that mounts it. The pod below passes Pod Security restricted, which the namespace can enforce (see Installation):

kubectl -n datadog-gpu-benchmark apply -f - <<'EOF'
apiVersion: v1
kind: Pod
metadata:
  name: dataset-loader
spec:
  securityContext:
    runAsNonRoot: true
    runAsUser: 1000
    runAsGroup: 1000
    # Makes the volume writable by the pod, on volumes that support it (block storage).
    fsGroup: 1000
    seccompProfile:
      type: RuntimeDefault
  containers:
    - name: loader
      image: busybox:1.36
      command: ["sleep", "3600"]
      securityContext:
        allowPrivilegeEscalation: false
        capabilities:
          drop: ["ALL"]
      volumeMounts:
        - name: data
          mountPath: /data
  volumes:
    - name: data
      persistentVolumeClaim:
        claimName: datadog-gpu-benchmark-datasets
EOF
kubectl -n datadog-gpu-benchmark wait --for=condition=Ready pod/dataset-loader
kubectl -n datadog-gpu-benchmark exec dataset-loader -- mkdir -p /data/2026-11
kubectl -n datadog-gpu-benchmark cp traces.jsonl dataset-loader:/data/2026-11/traces.jsonl
kubectl -n datadog-gpu-benchmark delete pod dataset-loader

Then register the dataset in Datadog with the claim name and its path on the volume, here 2026-11/traces.jsonl. A Mooncake dataset is one JSONL file; a Weka dataset is a directory of per-trace JSON files (kubectl cp ./weka dataset-loader:/data/weka). Benchmark pods run as non-root, so files must be readable by everyone (0644, directories 0755).

fsGroup doesn't apply to file shares (EFS, Filestore, Azure Files): give user or group 1000 write access to the share instead, for example with an EFS access point owned by 1000:1000.

With a ReadWriteOnce volume (EBS, Persistent Disk), delete the loader pod before starting a run: the volume attaches to one node at a time, and a run whose pod can't mount it fails after 10 minutes pending. ReadWriteMany volumes (EFS, Filestore, Azure Files) don't have this constraint.

To keep datasets in a bucket instead, serve it through a CSI driver such as Mountpoint for Amazon S3 or Cloud Storage FUSE, and bind the claim to its PersistentVolume with datasetVolume.volumeName. If that PersistentVolume has no StorageClass, also set datasetVolume.storageClassName: "": otherwise the claim gets the cluster's default StorageClass and never binds. You then upload datasets with your bucket's own tools.

Values

KeyTypeDefaultDescription
clusterAgent.namespacestring""Namespace of the Cluster Agent. Required.
clusterAgent.serviceAccountstring""Name of the Cluster Agent's ServiceAccount. Required. With the datadog Helm chart it is <release>-cluster-agent; with the Datadog Operator, <DatadogAgent name>-cluster-agent.
datasetVolume.accessModeslist["ReadWriteMany"]Access modes of the claim. ReadWriteMany (EFS, Filestore, Azure Files) lets you copy datasets while runs read them. With ReadWriteOnce, delete the pod you copied them with before starting a run.
datasetVolume.enabledboolfalseCreate the datadog-gpu-benchmark-datasets PersistentVolumeClaim. It is kept when the release is uninstalled.
datasetVolume.sizestring"50Gi"Size of the claim. Leave room for every dataset you keep on it.
datasetVolume.storageClassNamestringnilStorageClass of the claim. Unset uses the cluster's default StorageClass; "" requests no StorageClass, which binding to a PersistentVolume without one (volumeName) needs.
datasetVolume.volumeNamestring""Bind the claim to an existing PersistentVolume, for example one a bucket CSI driver (Mountpoint for Amazon S3, Cloud Storage FUSE) serves. Empty provisions a volume from the StorageClass.
podOverrides.affinityobject{}Affinity for benchmark pods.
podOverrides.annotationsobject{}Annotations added to benchmark pods.
podOverrides.imagePullSecretslist[]Secrets of the benchmark namespace the kubelet pulls the image with, e.g. [{name: my-registry}].
podOverrides.imageRepositorystring""Repository of a mirror of Datadog's benchmark image, without a tag or digest, e.g. 123456789012.dkr.ecr.us-east-1.amazonaws.com/datadog/gpu-benchmark. Datadog keeps the image digest, so the mirror must hold that exact image.
podOverrides.labelsobject{}Labels added to benchmark pods. app.kubernetes.io/managed-by, gpu-benchmark/org and gpu-benchmark/run are set by Datadog.
podOverrides.nodeSelectorobject{}Node selector for benchmark pods. Benchmark pods only need CPU: keep them off GPU nodes.
podOverrides.priorityClassNamestring""PriorityClass for benchmark pods.
podOverrides.tolerationslist[]Tolerations for benchmark pods, for example to run on a tainted CPU node pool.
podOverrides.topologySpreadConstraintslist[]Topology spread constraints for benchmark pods.

Deploy datadog-gpu-benchmark with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has datadog-gpu-benchmark on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdatadog-gpu-benchmark is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply