Introduction
The components Kube-State-Metrics and Node-Problem-Detector are deployed by default and configured by the DPF operator via the DPFOperatorConfig.spec.monitoring field. OpenTelemetry Collector requires additional explicit endpoint configuration.
To disable all DPF-operator-managed monitoring components:
apiVersion: operator.dpu.nvidia.com/v1alpha1
kind: DPFOperatorConfig
metadata:
name: dpfoperatorconfig
namespace: dpf-operator-system
spec:
monitoring:
disable: true
Kube-State-Metrics
Kube-State-Metrics (KSM) exposes metrics about Kubernetes object states. This DPF-operator-managed KSM instance monitors DPU cluster resources only.
For Host Cluster Kubernetes resource metrics, a separate KSM instance must be deployed by the user — see User-Managed Components.
Deployment Architecture
KSM is deployed with a split architecture:
-
Host Cluster Deployment: A single Deployment that connects remotely to each DPU cluster's API server to collect metrics
-
DPU Cluster RBAC: RBAC-only resources on each DPU cluster grant permissions for the Host Cluster KSM
Monitored DPU Resources
KSM collects metrics for the following DPU custom resources:
IPAM Resources:
-
IPPool: IP address pool status and allocation metrics -
CIDRPool: CIDR pool status and allocation metrics
Service Function Chaining:
-
ServiceChain: Service chain status and configuration -
ServiceChainSet: Service chain set status -
ServiceInterface: Service interface status and health -
ServiceInterfaceSet: Service interface set status
Kubernetes Resources:
-
Pods,Deployments,DaemonSets, and more. See Kube-State-Metrics documentation for a complete list.
Configuration
KSM is enabled by default. To disable KSM while keeping other monitoring components enabled:
apiVersion: operator.dpu.nvidia.com/v1alpha1
kind: DPFOperatorConfig
metadata:
name: dpfoperatorconfig
namespace: dpf-operator-system
spec:
monitoring:
kubeStateMetrics:
disable: true
To customize KSM image and resources:
KSM metrics are automatically scraped by Prometheus via ServiceMonitor.
Node-Problem-Detector
Node-Problem-Detector (NPD) monitors DPU node health and reports problems as Node conditions. It runs as a DaemonSet on each DPU cluster node. The DaemonSet is unprivileged: checks read the host sysfs, host process metadata and the persistent journal through read-only mounts, and the DPU cluster admission policy rejects privileged node-problem-detector pods.
Health Checks
NPD includes DPU-specific health checks that run every 30 seconds:
|
Condition Type |
Check Description |
|---|---|
|
|
Verifies ovs-vswitchd process is running |
|
|
Verifies ovsdb-server process is running |
|
|
Checks for OVS process OOM kills |
|
|
Verifies host PF representors are present |
|
|
Checks physical uplink is operational |
|
|
Validates network MTU configuration |
Additionally, NPD monitors standard Kubernetes node problems (kernel deadlocks, read-only filesystems, disk pressure, OOM events). DPU mode (embedded vs separated) is enforced at provisioning time by the DPU agent and is not re-checked by NPD, since querying it requires privileged device access.
Integration with DPU Status
Node conditions from NPD are aggregated into the DPU resource's operationalConditions field via the NodeProblemsReady condition, providing centralized visibility into node health.
Configuration
NPD is enabled by default. To disable NPD while keeping other monitoring components enabled:
spec:
monitoring:
nodeProblemDetector:
disable: true
To customize NPD:
Monitoring DPU Health
Node-Problem-Detector health checks are aggregated into the DPU's operational status. To monitor DPU health:
$ kubectl -n dpf-operator-system get dpu
NAME READY OPERATIONAL PHASE AGE
worker1-mt2413xz0b67 True True Ready 73d
worker2-mt2413xz0b6w True True Ready 73d
Health is reported by the READY and OPERATIONAL columns; PHASE only reports the lifecycle stage. See DPU Operational Readiness for more details on the columns, operational conditions and alerting.
NPD also exposes Prometheus metrics on port 20257.
OpenTelemetry Collector
OpenTelemetry Collector (OTEL) forwards observability signals from DPU clusters to a user-specified endpoint. It can stream two independent signals, each enabled by its own endpoint:
-
Logs — collected from DPU cluster pods and forwarded via OTLP.
-
Metrics — container, pod, and node resource metrics scraped from every DPU node's kubelet and streamed to the management cluster, tagged with the originating DPUCluster name (the
clusterlabel). This powers the DPUService Performance dashboard.
Architecture
-
OTEL Collector DaemonSet: Collects logs and/or metrics from the DPU cluster and forwards them to the configured endpoint(s), tagged with the DPU cluster name
-
OTEL Collector Endpoint: Receives signals from DPU clusters via OTLP and exports to a backend (for metrics, typically Prometheus via its remote-write receiver)
Configuration
OTEL Collector is disabled by default. It is enabled when at least one of logging.endpoint, metrics.endpoint or tracing.endpoint is set; each signal is streamed only when its corresponding endpoint is configured.
Stream logs to an OTLP endpoint:
apiVersion: operator.dpu.nvidia.com/v1alpha1
kind: DPFOperatorConfig
metadata:
name: dpfoperatorconfig
namespace: dpf-operator-system
spec:
monitoring:
openTelemetryCollector:
logging:
endpoint: "http://<host-node-ip>:30050"
Stream DPU cluster workload metrics to the management cluster (both signals can be enabled together):
apiVersion: operator.dpu.nvidia.com/v1alpha1
kind: DPFOperatorConfig
metadata:
name: dpfoperatorconfig
namespace: dpf-operator-system
spec:
monitoring:
openTelemetryCollector:
metrics:
endpoint: "http://<host-node-ip>:30050"
The endpoint can be any OTLP-compatible receiver (OpenTelemetry Collector, observability gateway, cloud service, etc.). For metrics streaming, the management cluster collector writes the received metrics into Prometheus, so the bundled kube-prometheus-stack values must enable the Prometheus remote-write receiver (prometheus.prometheusSpec.enableRemoteWriteReceiver: true). See Helm Prerequisites.
If using the OpenTelemetry Collector deployed via Helm values (default configuration), it uses NodePort 30050:
# Get Host Cluster node IP
kubectl get nodes -o wide
# Use format: http://<NODE_IP>:30050
High Availability
A single node IP as the endpoint is a single point of failure: if that node goes down, no logs are forwarded until it returns. The NodePort is open on every Host Cluster node and Kubernetes forwards to any healthy collector pod, so for production point the endpoint at a stable, highly available address instead:
-
a DNS name resolving to one of the below (recommended),
-
a failover VIP that floats across the Host Cluster nodes (e.g. kube-vip or keepalived). The address must front the nodes themselves so the NodePort is reachable through it, an external load balancer that only forwards the Kubernetes API port does not qualify, or
-
a
LoadBalancerService address.
The DPU cluster collectors buffer and retry on failure, so a short address failover does not lose logs.
Note A
DPUClusterwithspec.clusterEndpoint.keepalivedalready exposes such a VIP. Keepalived is plain VRRP failover, not a load balancer: one node holds the address at a time, so it gives address failover but no load distribution. That is fine for test and development clusters; for production prefer aLoadBalanceror DNS name in front of a replicated receiver, as described below.
The receiving end, the collector the DPU clusters export to, must itself be highly available and preserve end-to-end TLS. A production-ready receiver has three properties:
-
The collector is replicated. Run the receiving OpenTelemetry Collector as a
Deploymentwith at least two replicas behind the Service. A VIP in front of a single collector pod is still a single point of failure. -
The load balancer is L4 (TCP) pass-through. The DPU clusters verify the receiver's own certificate via
caSecretRef, so the TLS connection must terminate at the collector, not at the load balancer. An L7 load balancer that terminates TLS with its own certificate breaks verification unless it presents the certificate whose CA is incaSecretRef. -
The serving certificate covers the dialed address. The address the DPU clusters dial must appear in the certificate SANs: a DNS SAN for a DNS name, or an IP SAN for a VIP.
The example below fronts a replicated collector with a MetalLB VIP on bare metal and addresses it by DNS name. The VIP mechanism is interchangeable with kube-vip or a cloud LoadBalancer; see the MetalLB or kube-vip documentation for the VIP itself.
A cert-manager Certificate for the gateway, with the DNS name as a SAN (use ipAddresses with the VIP to address it by IP instead):
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: otel-gateway-server-tls
namespace: monitoring
spec:
secretName: otel-gateway-server-tls
issuerRef:
name: private-ca-issuer
kind: ClusterIssuer
dnsNames:
- otel-gateway.example.com # resolves to the MetalLB VIP the DPU clusters dial
A LoadBalancer Service claiming the VIP, in front of the replicated collector:
apiVersion: v1
kind: Service
metadata:
name: otel-gateway
namespace: monitoring
annotations:
metallb.io/loadBalancerIPs: 10.0.0.100
spec:
type: LoadBalancer
selector:
app.kubernetes.io/name: otel-gateway
ports:
- name: otlp-http
port: 4318
targetPort: 4318
Point the DPFOperatorConfig at the DNS name (or the VIP IP) and reference the CA of the private issuer:
spec:
monitoring:
openTelemetryCollector:
logging:
endpoint: "https://otel-gateway.example.com:4318"
caSecretRef:
name: otel-gateway-server-tls
namespace: monitoring
caSecretRef reads ca.crt straight from the cert-manager Secret in the receiver's namespace, so the CA does not need to be copied into dpf-operator-system.
Transport
By default the collector exports data via OTLP/HTTP. Set transport: grpc to export via OTLP/gRPC instead:
spec:
monitoring:
openTelemetryCollector:
logging:
endpoint: "otel.example.com:4317"
transport: grpc
For the http transport the endpoint must include the scheme (http:// or https://). For the grpc transport the endpoint is host:port and TLS is used unless the endpoint is prefixed with http://.
transport is configured per signal. The metrics configuration takes the same field, so logs and metrics can use different transports and endpoints.
TLS and Custom CA Certificates
HTTPS endpoints are verified against the system CA pool by default. If the endpoint serves a certificate issued by a private CA, provide the CA bundle via a Secret referenced by caSecretRef. The Secret may live in any namespace, for example alongside the endpoint's cert-manager Certificate; if namespace is omitted, the dpf-operator-system namespace is used. The certificate is never skipped from verification.
kubectl create secret generic otel-ca \
--namespace dpf-operator-system \
--from-file=ca.crt=/path/to/ca.crt
spec:
monitoring:
openTelemetryCollector:
logging:
endpoint: "https://otel.example.com:4318"
caSecretRef:
name: otel-ca
caSecretRef is configured per signal as well. Set it on metrics to verify the metrics endpoint, referencing the same Secret as logging when both signals go to the same receiver:
spec:
monitoring:
openTelemetryCollector:
logging:
endpoint: "https://otel.example.com:4318"
caSecretRef:
name: otel-ca
metrics:
endpoint: "https://otel.example.com:4318"
caSecretRef:
name: otel-ca
To reference the CA where cert-manager wrote it, set namespace (and key, if the bundle is stored under a key other than ca.crt):
spec:
monitoring:
openTelemetryCollector:
logging:
endpoint: "https://otel.example.com:4318"
caSecretRef:
name: otel-gateway-server-tls
namespace: monitoring
key: ca.crt
The Secret must contain the PEM-encoded CA bundle under the caSecretRef.key key, defaulting to ca.crt. Changes to the Secret content are applied on the next reconciliation of the DPFOperatorConfig. A caSecretRef cannot be combined with a plaintext http:// endpoint.
To extend or replace the default OpenTelemetry Collector configuration with your own, see Custom Configuration.
Tracing
DPF controllers can export distributed trace spans for their reconcile loops via OpenTelemetry, using the tracing.k8s.io/traceparent and tracing.k8s.io/tracestate annotations an upstream caller (e.g. carbide) sets on the CRs it creates, so a single request can be followed across DPF's own controllers. See Setting the trace context for the objects a caller sets them on.
There are two destinations, because the Host Cluster and the DPU clusters reach different addresses:
-
Host Cluster destination,
spec.monitoring.tracing.otlp.endpoint: where the DPF controllers that run in the Host Cluster export their spans. This includes the servicechainset controller, which acts on the DPU clusters from the Host Cluster. They use their own embedded OpenTelemetry SDK, and no DaemonSet is involved. They run in the Host Cluster, so a cluster-local Service of an OpenTelemetry Collector works. -
DPU cluster destination,
spec.monitoring.openTelemetryCollector.tracing.endpoint: where the DPU clusters export their spans. The DPU cluster's OpenTelemetry Collector DaemonSet forwards to it the trace spans it receives locally over OTLP (port 4317/4318, the same receiver already used for OTLP-native logs and metrics), for example from another DOCA service. The sfc-controller, the DPF controller that runs on the DPUs, sends its spans through the collector. Without the packaged collector it exports to this endpoint directly. The DPUs must reach it, so set it like the logging and metrics endpoints, to the NodePort or the VIP of the Host Cluster collector.
Do not use a cluster-local Service name for the DPU cluster destination, spec.monitoring.openTelemetryCollector.tracing.endpoint. It resolves on the Host Cluster, but not on the DPUs, so the spans of the DPU clusters never arrive. The Host Cluster destination, spec.monitoring.tracing.otlp.endpoint, can use one.
For how a DPF controller is instrumented, see Tracing in the developer guide.
Setting the trace context
Set the annotations to the W3C trace context of the request, in the same write as the change it traces. tracestate is optional. DPF writes tracing.k8s.io/generated-traceparent and tracing.k8s.io/generated-tracestate on the objects it creates or changes, and a controller reads the pair a caller set first. A trace context left on an object after its change is done is therefore joined by every later change of the object. Set a new value with each change, or remove it. DPF removes it only where it ends the trace itself, see the table below.
DPF reads a trace context from these objects for DPU provisioning:
|
Object |
Set it when |
What continues the trace |
|---|---|---|
|
DPUDeployment |
creating it or changing its spec |
The DPUDeployment reconciles, the DPUSets it creates or updates, and the DPUs they recreate or update in place for that change |
|
DPUDevice |
creating it, recreating it, or changing its spec |
The DPUDevice reconciles, its hostless DPUNode, the DPU the DPUSet creates for it, and the DPUNodeMaintenance and Node changes of that DPU |
|
DPUCluster |
changing its labels |
The DPUs the DPUSet deletes and recreates because the DPUCluster no longer matches their cluster selector |
|
DPUFlavorTemplate |
changing its template |
The DPUs the DPUSet recreates for that change |
|
DPUDiscovery |
changing its spec |
The scan of that change and the DPUDevices and DPUNodes it creates. DPF removes the trace context once the scan has completed, so a periodic scan does not join it |
|
DPU |
changing it |
The DPU reconciles, and its DPUNodeMaintenance and Node changes |
A DPUDeployment or DPUDevice without a trace context still gets one trace per change: DPF derives the trace from its UID and generation and exports a dpudeploymentcontroller.rollout or dpudevice.rollout root span that ends when the DPUDeployment, or the DPU of the DPUDevice, is Ready. For a DPUDeployment, a change of a BFB, BlueFieldSoftware, DPUFlavor or DPUFlavorTemplate it references also starts a new trace, including when one of them is deleted and recreated under the same name. A recreated DPUDevice has a new UID and starts a new trace. Any other object without a trace context is not continued: its changes do not move the DPUs onto a trace of their own.
When the DPUSet replaces a DPU, it copies the trace of the cause onto the DPUDevice before it deletes the DPU, so the DPU it recreates continues the cause. This removes a trace context a caller set on the DPUDevice. When the cause has no trace context, the DPUSet removes the DPUDevice's trace context instead, so the recreated DPU continues the DPUDevice's own trace rather than an earlier change's. The DPUSet copies the same trace onto the DPU it deletes, so its cleanup, such as the dpu.phase.Deleting span, appears in the same trace as its replacement. A DPU that was already being deleted keeps its trace. The cause is the DPUSet, and so its DPUDeployment, unless the change came only from a DPUFlavorTemplate, a DPUCluster or the DPUDevice values, as listed above.
Configuration
Tracing is disabled by default. To let the DPF controllers of the Host Cluster export their spans, set the Host Cluster destination, spec.monitoring.tracing.otlp.endpoint:
apiVersion: operator.dpu.nvidia.com/v1alpha1
kind: DPFOperatorConfig
metadata:
name: dpfoperatorconfig
namespace: dpf-operator-system
spec:
monitoring:
tracing:
otlp:
endpoint: "http://<otel-collector-clusterip>:4318"
To export the spans of the DPU clusters, set the DPU cluster destination, spec.monitoring.openTelemetryCollector.tracing.endpoint. Setting it also deploys the DPU cluster collector, if it is not disabled, so it can accept and forward traces from other local emitters:
spec:
monitoring:
openTelemetryCollector:
tracing:
endpoint: "http://<host-node-ip>:30050"
spec.monitoring.tracing.otlp and spec.monitoring.openTelemetryCollector.tracing both take the same transport and caSecretRef fields as logging and metrics, see Transport and TLS and Custom CA Certificates above. The other fields of spec.monitoring.tracing decide how many spans the DPF controllers export, in the Host Cluster and in the DPU clusters:
-
recordIdleReconciles(falseby default):truealso exports idle reconciles, which start at theresourceVersionthe last successful reconcile left behind, for example requeues and resyncs. An idle reconcile that fails or changes its object is always exported. -
recordUnchangedReconciles(falseby default):truealso exports reconciles that changed nothing on their object, did not fail and have no child spans. Such a span only says that the reconcile ran. -
samplingPercent(100by default): the share of the traces that is exported. The decision is made per trace, so all spans of a change are kept or dropped together. It also applies to traces started by an upstream caller. -
rolloutTimeout(1hby default): how long a change may take to become ready before its rollout span is exported as timed out. It is also how long a trace keeps collecting reconciles. A later reconcile starts a trace of its own with a span link to the change, and still carries itsworkflow.id.0sturns the timeout off: a rollout then ends only once the change is ready or a newer change replaces it, and a trace keeps collecting reconciles.
spec:
monitoring:
openTelemetryCollector:
tracing:
endpoint: "https://<host-node-ip>:30050"
caSecretRef:
name: otel-ca
tracing:
otlp:
endpoint: "https://<otel-collector-clusterip>:4318"
caSecretRef:
name: otel-ca
samplingPercent: 50
rolloutTimeout: 30m
Changing one of them restarts the controllers that export traces. A separate collector deployed as its own DPUService forwards only the pipelines in its own config. See Custom Configuration. Disable the packaged collector with spec.monitoring.openTelemetryCollector.disable: true when the packaged trace forwarding should stop. The sfc-controller then exports to the DPU cluster destination, spec.monitoring.openTelemetryCollector.tracing.endpoint, directly.
Opting out
Set spec.monitoring.tracing.disableControllerTraces: true to stop all DPF controllers from exporting spans while keeping the configuration. The DPU cluster collector still forwards the spans it receives locally, so other emitters can keep tracing without the controller traces.
With spec.monitoring.tracing set, every CR-driven controller exports spans. disableControllerTraces takes precedence over the per-controller setting. To switch tracing off for one of them only, set disableTracing in its component configuration. These controllers support it:
spec:
provisioningController:
disableTracing: true
dpuServiceController:
disableTracing: true
nodeSRIOVDevicePluginController:
disableTracing: true
serviceSetController:
disableTracing: true
sfcController:
disableTracing: true
The controller then runs without an exporter and exports no spans. It also stops writing the generated trace annotations onto the objects it creates and removes them from the ones it writes again, so a trace ends at this controller. disableTracing applies per controller deployment: dpuServiceController covers all the reconcilers of the DPUService controller (DPUDeployment, DPUService, DPUServiceChain, DPUServiceInterface, DPUServiceIPAM, DPUServiceNAD and so on).
Viewing traces
DPF only exports the spans. The reference monitoring stack deploys Tempo as the trace backend and wires it into Grafana as a datasource named Tempo, alongside the Loki and Prometheus datasources. From Grafana:
-
Explore → Tempo, search by any span attribute (
controller,k8s.resource.kind,k8s.namespace.name,k8s.object.name, ...) to find a trace. -
Search
{ name = "dpudeploymentcontroller.change" }to find the changes of DPUDeployments, and open one to see what ran for it. The trace has the reconciles of all controllers that ran for that change. Reconciles that find nothing changed are not recorded. -
A reconcile span has
reconcile.changes, what the reconcile changed on its own object:none,status,spec(the generation moved),metadata(labels, annotations or finalizers), or several joined with+. Controllers keep rewriting their status while children settle, so{ span.reconcile.changes != "status" && span.reconcile.changes != "none" }hides those reconciles. -
A DPUDeployment and a DPUService also export one rollout span per generation,
dpudeploymentcontroller.rolloutanddpuservice-manager.rollout. It lasts from the change until it is ready and marks the end of the change, and it is the root with the real duration. While the change is in progress, an instantdpudeploymentcontroller.changespan is the root of the trace.rollout.resultisready,timeout(not ready withinrolloutTimeout) orsuperseded(a newer generation came first). Search{ name = "dpudeploymentcontroller.rollout" }to see how long changes took. -
A DPUService reconcile has child spans for its slow steps:
dpuservice.argocd-application(withapplication.actioncreate, update or unchanged),dpuservice.image-pull-secrets, and for a DPUServiceCredentialRequestcredentialrequest.service-accountandcredentialrequest.secret. -
The DPUServiceChain, DPUServiceInterface, DPUServiceIPAM and DPUServiceNAD reconciles have a child span for each call to a DPU cluster:
dpucluster.apply,dpucluster.readiness(withobjects.countandobjects.unready) anddpucluster.delete, all withdpucluster.name. -
A Node reconcile of the node SR-IOV device plugin controller has a
nodesriovdeviceplugin.sync-podchild span, withpod.actioncreate, delete, recreate or none, so a reconcile that only looked at the node is still visible. -
A span also carries the kind and name of the controller owner of its object (
k8s.owner.kind,k8s.owner.name). Search by them to find the reconciles of everything one owner created, for example{ span.k8s.owner.kind = "DPUDeployment" && span.k8s.owner.name = "<dpudeployment>" }for the objects a DPUDeployment created. Follow the chain by using the names that come back as the owner in the next query. -
From a log line in Loki that contains a
traceID=field, the TraceID derived field jumps straight to the matching trace in Tempo. -
From a span in Tempo, trace to logs jumps to the matching Loki entries and trace to metrics jumps to that span's service in Prometheus.
Last updated: