跳到导航

Operator Metrics

Kubernetes-only controller and Dynamo metrics, plus the annotations and Helm values that enable collection.

The Dynamo Operator exposes controller-runtime reconciliation metrics and Dynamo-specific Prometheus metrics for webhook validation and resource inventory. These are Kubernetes-scoped — they exist only where the operator runs, and are separate from the application metrics emitted by frontends and workers (see Metrics Catalog). For enablement and dashboards (including the operator dashboard), see the Kubernetes observability guide.

Reconciliation metrics use the controller-runtime controller_runtime prefix. Webhook and resource inventory metrics use the dynamo_operator prefix. Kubernetes API client metrics use the rest_client prefix. Unlike application metrics (which use a PodMonitor), the operator is scraped via a ServiceMonitor created by the Helm chart.

Reconciliation metrics

Track how efficiently controllers process DynamoGraphDeployment, DynamoComponentDeployment, DynamoModel, DynamoGraphDeploymentRequest, and DynamoGraphDeploymentScalingAdapter resources. These metrics are cluster-wide and do not carry target namespace or error-category labels.

controller_runtime_reconcile_time_seconds
histogram

Duration of reconciliation loops. Labeled by controller.

controller_runtime_reconcile_total
counter

Total number of reconciliations. Labeled by controller and result.

controller_runtime_reconcile_errors_total
counter

Total reconciliation errors. Labeled by controller.

Webhook metrics

Track performance and outcomes of admission webhook requests.

dynamo_operator_webhook_duration_seconds
histogram

Duration of webhook validation requests. Labeled by resource_type and operation.

dynamo_operator_webhook_requests_total
counter

Total webhook admission requests. Labeled by resource_type, operation, and result.

dynamo_operator_webhook_denials_total
counter

Total webhook denials with reasons. Labeled by resource_type, operation, and reason.

Resource inventory metrics

dynamo_operator_resources_total
gauge

Current count of managed resources by state. Labeled by resource_type, namespace, and status.

Kubernetes API client metrics

Track the operator’s REST calls to the Kubernetes API server. These come from client-go through controller-runtime and share the rest_client prefix.

rest_client_requests_total
counter

Number of HTTP requests. Labeled by code, method, and host.

rest_client_request_duration_seconds
histogram

Request latency in seconds. Labeled by verb and host.

rest_client_dns_resolution_duration_seconds
histogram

DNS resolver latency in seconds. Labeled by host.

rest_client_request_size_bytes
histogram

Request size in bytes. Labeled by verb and host.

rest_client_response_size_bytes
histogram

Response size in bytes. Labeled by verb and host.

rest_client_rate_limiter_duration_seconds
histogram

Client-side rate limiter wait time in seconds. Labeled by verb and host.

rest_client_request_retries_total
counter

Number of request retries. Labeled by code, verb, and host.

Operator metric labels

These labels are specific to operator metrics and are distinct from the application Metric Labels.

controller
string

The controller name: DynamoGraphDeployment, DynamoComponentDeployment, DynamoModel, DynamoGraphDeploymentRequest, or DynamoGraphDeploymentScalingAdapter.

host
string

On rest_client_* metrics — the API server host. Request metrics carry the URL host including its port, e.g. kubernetes.default.svc:443, while rest_client_dns_resolution_duration_seconds records the resolved hostname without the port, e.g. kubernetes.default.svc. The two forms differ, so a PromQL join on host across them does not match.

verb
string

On rest_client_* metrics — the HTTP method: GET, POST, PUT, PATCH, or DELETE. Kubernetes list and watch requests are issued as GET.

resource_type
string

The managed CRD on Dynamo-specific webhook and resource inventory metrics.

namespace
string

Target Kubernetes namespace on dynamo_operator_resources_total.

result
string

Outcome of the operation. On controller_runtime_reconcile_total: success, error, requeue, or requeue_after. On webhook metrics: allowed or denied.

operation
string

On webhook metrics — the admission operation.

Allowed values: CREATE UPDATE DELETE
reason
string

On dynamo_operator_webhook_denials_total — the validation failure reason, e.g. immutable_field_changed, invalid_config.

status
string

On dynamo_operator_resources_total — resource state derived from each CRD’s status. Common values: ready, not_ready, unknown (DCD, DM, DGDSA). DGD uses pending, successful, failed from .status.state. DGDR uses Pending, Profiling, Ready, Deploying, Deployed, Failed from .status.phase.

Kubernetes enablement knobs

Metrics collection on Kubernetes is controlled by CRD annotations and Helm values — not environment variables. These knobs govern whether application and operator metrics are scraped at all.

These fields also appear in the CRD and Helm references. They are reproduced here so the observability enablement path is documented in one place. For platform installation and Helm configuration, see Install Dynamo.

nvidia.com/metrics-enabled
boolean (pod label)Defaults to true

Pod label the operator adds to every managed pod so the PodMonitor discovers and scrapes it. Present automatically; you do not set it by hand.

nvidia.com/enable-metrics
boolean (DGD annotation)Defaults to true

Annotation on a DynamoGraphDeployment to opt a deployment out of metrics collection. Set to false to disable scraping for that deployment.

dynamo-operator.metricsService.enabled
boolean (Helm value)Defaults to true

Helm value controlling whether the operator’s metrics Service and ServiceMonitor are created. Set to false to disable operator metrics collection.

dynamo-operator.dynamo.metrics.prometheusEndpoint
string (Helm value)

Helm value pointing the operator at your Prometheus endpoint, e.g. http://prometheus-kube-prometheus-prometheus.monitoring.svc.cluster.local:9090.

To disable operator metrics collection:

helm upgrade dynamo-platform dynamo-platform-${RELEASE_VERSION}.tgz \
--namespace dynamo-system \
--set dynamo-operator.metricsService.enabled=false

To opt a single deployment out of application metrics:

apiVersion: nvidia.com/v1
kind: DynamoGraphDeployment
metadata:
name: my-deployment
annotations:
nvidia.com/enable-metrics: "false"
spec:
# …