profiler
by zymtrace
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:
- Profiler Configuration
- Install Profiler
- Environment Variables and CLI Arguments Reference
- GPU Metrics
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-valueswhen 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.soinstead of--nvml-auto-scanif 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-scanoptions.
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
| Key | Type | Description |
|---|---|---|
| global.namePrefix | string | Prefix for resource names |
| global.imageRegistry | string | Container image registry |
| global.registry.requirePullSecret | bool | Whether to require image pull secret |
| global.imagePullPolicy | string | Image pull policy |
| global.ClusterMetadata.cluster_id | string | Cluster ID to add as a tag to the profiler agent |
| rbac.create | bool | Create RBAC resources |
| rbac.rules | list | RBAC rules for the profiler |
| serviceAccount.annotations | object | Annotations for the service account (e.g., for IAM roles) |
| profiler.image.repository | string | Profiler image repository |
| profiler.image.tag | string | Profiler image tag (override with --set profiler.image.tag=<version>) |
| profiler.updateStrategy.maxUnavailable | int or string | Max pods (or percentage, e.g. 25%) replaced at once during a DaemonSet rollout (default 1) |
| profiler.securityContext.capabilities.add | list | Required SYS permissions |
| profiler.cudaProfiler.enabled | bool | Enable CUDA profiler (for GPU profiling) |
| profiler.cudaProfiler.hostMountPath | string | Host path for CUDA profiler data |
| profiler.args | list | Arguments passed to the profiler. See CLI Args |
| profiler.env | object | Environment variables. See Env Variables |
| profiler.env.fieldRefs.NODE_NAME | bool | Enable NODE_NAME from Kubernetes downward API (maps to spec.nodeName) |
| profiler.env.fieldRefs.KUBERNETES_NODE_NAME | bool | Enable KUBERNETES_NODE_NAME from Kubernetes downward API (maps to spec.nodeName) |
| profiler.resources.requests.cpu | string | CPU request |
| profiler.resources.requests.memory | string | Memory request |
| profiler.resources.limits.cpu | string | CPU limit |
| profiler.resources.limits.memory | string | Memory limit |
| profiler.nodeSelector | object | Node selector for pod assignment |
| profiler.tolerations | list | Tolerations for pod assignment (includes GPU node toleration by default) |
| profiler.affinity | object | Affinity 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartprofiler is pinned at v26.11.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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