This document is relevant for: Trn2, Trn3
How to install and configure Neuron Observer on Amazon EKS#
Overview#
The Helm chart deploys Neuron Observer as a DaemonSet on each Trainium node in your Amazon EKS cluster. This page covers what the quickstart skips: the full prerequisites, the other components that the Neuron Helm chart ships and how to turn them off, how to install into a cluster that already runs Prometheus, how to verify the daemon, and how to upgrade to a newer chart version.
To send metrics to Amazon CloudWatch or Amazon Managed Service for Prometheus (AMP), or to scrape the daemon from a Prometheus that doesn’t use the Prometheus Operator, see How to configure Neuron Observer metrics export. To remove Neuron Observer, see How to uninstall Neuron Observer.
Note
Neuron Observer is in public beta. APIs, metric names, and installation steps can change before general availability.
Prerequisites#
EKS cluster with Trainium 2 (Trn2) or Trainium 3 (Trn3) node groups.
Neuron driver loaded on nodes (
/dev/neuron0must exist on each Neuron node).Nodes labeled with
neuron.amazonaws.com/present: "true"(applied automatically by the Neuron device plugin).Network access to Amazon ECR Public from the workstation and cluster nodes:
Image —
public.ecr.aws/neuron/neuron-observer:0.3.0Chart —
oci://public.ecr.aws/neuron/neuron-helm-chartversion1.12.0
Prometheus installed in-cluster to scrape the daemon’s native
/metricsendpoint. If Prometheus is not installed, see Step 1 of the quickstart to install thekube-prometheus-stackHelm chart. For CloudWatch or AMP export, see How to configure Neuron Observer metrics export for the additional prerequisites.helm 3.8+ on the workstation (needed for OCI-registry chart pulls).
Install Neuron Observer#
1: Choose the chart components
Every install uses the same Neuron Helm chart and needs --set observer.enabled=true. The chart also packages other Neuron components: the device plugin (devicePlugin), node problem detector (npd), scheduler extension (scheduler), DRA driver (draDriver), and UltraServer operator (ultraserverOperator). The device plugin and node problem detector are enabled by default.
The commands in this guide install Neuron Observer only, so they turn the other components off. This doesn’t affect components you’ve already installed in another Helm release. To install one of them in this release, remove its flag from COMMON.
For a full list of the observer.* chart values and their defaults, see Reference: Neuron Observer configuration.
Common flags for every install:
CHART=oci://public.ecr.aws/neuron/neuron-helm-chart
CHART_VERSION=1.12.0
# Turn off the chart's other Neuron components; this release installs
# Neuron Observer only.
COMMON="--set draDriver.enabled=false \
--set devicePlugin.enabled=false \
--set scheduler.enabled=false \
--set ultraserverOperator.enabled=false \
--set npd.enabled=false"
2: Install Neuron Observer
Run helm upgrade --install. Prometheus scrapes the daemon directly and does not require an OpenTelemetry collector.
helm upgrade --install neuron-observer $CHART \
--version $CHART_VERSION \
--namespace neuron-observer --create-namespace \
$COMMON \
--set observer.enabled=true \
--set observer.monitoring.releaseLabel=prometheus \
--set observer.monitoring.grafanaDashboards.enabled=true
observer.monitoring.releaseLabel must match the release label that your Prometheus Operator selects. The value prometheus matches a kube-prometheus-stack release named prometheus. If your release has another name, set the label to that name.
This example creates the dashboard ConfigMap resources in the monitoring namespace. The kube-prometheus-stack Grafana sidecar container discovers them. If your sidecar container watches another namespace or label, set the corresponding observer.monitoring.grafanaDashboards.* values.
To export to AMP or CloudWatch, add the pipeline flags from How to configure Neuron Observer metrics export to this command. You can also add them later by rerunning the command with the extra flags.
3: Verify the installation
To confirm the installation succeeded, check that pods are running on each Neuron node:
kubectl get pods -n neuron-observer -o wide
Expected output: one neuron-observer pod per Neuron node in Running state. The AMP and CloudWatch options also create one collector pod per Neuron node.
Verify the daemon is healthy:
kubectl exec -n neuron-observer <observer-pod> -- nobs status
# Expected output:
# version <installed version>
# live true
# ready true
# neuron driver <installed driver version>
# efa driver <installed EFA version, when available>
Verify that the daemon produces metrics at its native Prometheus endpoint:
kubectl port-forward -n neuron-observer <observer-pod> 7001:7001
In another terminal:
curl -s http://localhost:7001/metrics | head -30
The response contains Prometheus exposition-format output with metrics prefixed with neuron_.
Upgrade Neuron Observer#
To upgrade to a newer chart version, rerun the helm upgrade --install command from step 2 with the new --version value and the same --set flags. Helm applies the new chart to the existing release and replaces the daemon pods.
To check the installed chart version:
helm list -n neuron-observer
After the upgrade, repeat step 3 to confirm that the daemon is ready. For the chart and image versions that ship with each Neuron release, see the Neuron Observer release notes.