profiler

by zymtrace

Helm chartv26.11.1App 26.11.1Verified publisher

Deploy zymtrace's profiler agent

About this chart

Zymtrace Profiler Chart

Deploy zymtrace's profiler agent - a lightweight, low-overhead continuous profiler for CPU and GPU workloads.

Homepage: https://docs.zymtrace.com

Source Code

Documentation

For detailed configuration and usage instructions, see:

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+

⚠️ WARNING: Avoid Data Loss on Upgrades

When upgrading image tags or any partial helm upgrade (without -f), you MUST include --reset-then-reuse-values (or --reuse-values) to preserve existing chart values.

Omitting these flags will reset all values to chart defaults, which can result in misconfigured deployments.

  • Use --reset-then-reuse-values when upgrading with --set (e.g. image tags)
  • Use -f <values-file> when doing a full deployment — no reuse flag needed in that case

Installation

Add the zymtrace Helm repository:

helm repo add zymtrace https://helm.zystem.io
helm repo update

To search for available versions:

helm search repo zymtrace --versions

Install with a values file

helm install profiler zymtrace/profiler \
  --namespace zymtrace \
  --create-namespace \
  -f profiler-values.yaml

Install without a values file (GPU profiling with metrics)

helm install profiler zymtrace/profiler \
  --namespace zymtrace \
  --create-namespace \
  --set profiler.cudaProfiler.enabled=true \
  --set profiler.args[0]="--collection-agent=zymtrace-gateway.zymtrace.svc.cluster.local:80" \
  --set profiler.args[1]="--disable-tls" \
  --set profiler.args[2]="--enable-gpu-metrics" \
  --set profiler.args[3]="--nvml-auto-scan"

Note: Use --nvml-path=/path/to/libnvidia-ml.so instead of --nvml-auto-scan if you know the exact NVML library path.

Install without a values file (CPU profiling only)

helm install profiler zymtrace/profiler \
  --namespace zymtrace \
  --create-namespace \
  --set profiler.args[0]="--collection-agent=zymtrace-gateway.zymtrace.svc.cluster.local:80" \
  --set profiler.args[1]="--disable-tls"

Note: For CPU-only profiling, simply omit profiler.cudaProfiler.enabled, --enable-gpu-metrics, and --nvml-auto-scan options.

Upgrading

Upgrade image tag only

helm upgrade profiler zymtrace/profiler \
  --namespace zymtrace \
  --reset-then-reuse-values \
  --set profiler.image.tag="NEW_VERSION" \
  --debug

Upgrade with a values file (full config)

helm upgrade --install profiler zymtrace/profiler \
  --namespace zymtrace \
  --create-namespace \
  -f profiler-values.yaml \
  --debug

Configuration Examples (values file)

CPU Profiling Only

profiler:
  args:
    - "--collection-agent=zymtrace-gateway.zymtrace.svc.cluster.local:80"
    - "--disable-tls"

CUDA Profiling with GPU Metrics

profiler:
  cudaProfiler:
    enabled: true  # Enables CUDA/GPU kernel profiling
  args:
    - "--collection-agent=zymtrace-gateway.zymtrace.svc.cluster.local:80"
    - "--disable-tls"
    - "--enable-gpu-metrics"  # Enables GPU metrics collection
    - "--nvml-auto-scan"

CUDA Profiling with GPU Metrics (explicit NVML path)

profiler:
  cudaProfiler:
    enabled: true  # Enables CUDA/GPU kernel profiling
  args:
    - "--collection-agent=zymtrace-gateway.zymtrace.svc.cluster.local:80"
    - "--disable-tls"
    - "--enable-gpu-metrics"  # Enables GPU metrics collection
    - "--nvml-path=/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1"

CUDA Profiling Only (without GPU metrics)

profiler:
  cudaProfiler:
    enabled: true
  args:
    - "--collection-agent=zymtrace-gateway.zymtrace.svc.cluster.local:80"
    - "--disable-tls"

Target GPU Nodes Only

profiler:
  cudaProfiler:
    enabled: true
  nodeSelector:
    nvidia.com/gpu: "true"
  args:
    - "--collection-agent=zymtrace-gateway.zymtrace.svc.cluster.local:80"
    - "--disable-tls"
    - "--enable-gpu-metrics"
    - "--nvml-auto-scan"

GPU Profiling with Custom Tags

profiler:
  cudaProfiler:
    enabled: true
  args:
    - "--collection-agent=zymtrace-gateway.zymtrace.svc.cluster.local:80"
    - "--disable-tls"
    - "--enable-gpu-metrics"
    - "--nvml-auto-scan"
    - "--tags=cloud_region:us-central1;env:staging"

Full GPU Configuration Example

profiler:
  cudaProfiler:
    enabled: true
    hostMountPath: "/var/lib/zymtrace/profiler"
  args:
    - "--collection-agent=zymtrace-gateway.zymtrace.svc.cluster.local:80"
    - "--disable-tls"
    - "--enable-gpu-metrics"
    - "--nvml-auto-scan"
    - "--tags=cloud_region:us-central1;env:production"
  nodeSelector:
    nvidia.com/gpu: "true"
  resources:
    requests:
      cpu: "200m"
      memory: "256Mi"
    limits:
      cpu: "1000m"
      memory: "1Gi"

Values

KeyTypeDescription
global.namePrefixstringPrefix for resource names
global.imageRegistrystringContainer image registry
global.registry.requirePullSecretboolWhether to require image pull secret
global.imagePullPolicystringImage pull policy
global.ClusterMetadata.cluster_idstringCluster ID to add as a tag to the profiler agent
rbac.createboolCreate RBAC resources
rbac.ruleslistRBAC rules for the profiler
serviceAccount.annotationsobjectAnnotations for the service account (e.g., for IAM roles)
profiler.image.repositorystringProfiler image repository
profiler.image.tagstringProfiler image tag (override with --set profiler.image.tag=<version>)
profiler.updateStrategy.maxUnavailableint or stringMax pods (or percentage, e.g. 25%) replaced at once during a DaemonSet rollout (default 1)
profiler.securityContext.capabilities.addlistRequired SYS permissions
profiler.cudaProfiler.enabledboolEnable CUDA profiler (for GPU profiling)
profiler.cudaProfiler.hostMountPathstringHost path for CUDA profiler data
profiler.argslistArguments passed to the profiler. See CLI Args
profiler.envobjectEnvironment variables. See Env Variables
profiler.env.fieldRefs.NODE_NAMEboolEnable NODE_NAME from Kubernetes downward API (maps to spec.nodeName)
profiler.env.fieldRefs.KUBERNETES_NODE_NAMEboolEnable KUBERNETES_NODE_NAME from Kubernetes downward API (maps to spec.nodeName)
profiler.resources.requests.cpustringCPU request
profiler.resources.requests.memorystringMemory request
profiler.resources.limits.cpustringCPU limit
profiler.resources.limits.memorystringMemory limit
profiler.nodeSelectorobjectNode selector for pod assignment
profiler.tolerationslistTolerations for pod assignment (includes GPU node toleration by default)
profiler.affinityobjectAffinity rules for pod assignment

Deploy profiler with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has profiler 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 chartprofiler is pinned at v26.11.1 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