This document is relevant for: Trn2, Trn3

Get started with Neuron Observer on Amazon EKS#

Install Neuron Observer on your Trainium nodes, verify it with the nobs CLI, and view your first metrics in Grafana.

Time to complete: ~25 minutes.

Note

Neuron Observer is in public beta. APIs, metric names, and installation steps can change before general availability.

Overview#

This quickstart uses one default path: Prometheus and Grafana running in your cluster. It needs no AWS-side setup beyond the cluster itself. After you finish, you can export the same metrics to Amazon CloudWatch or Amazon Managed Service for Prometheus (AMP) by following How to configure Neuron Observer metrics export.

In this quickstart, you:

  • Install Prometheus and Grafana in your cluster, if they are not already there.

  • Install Neuron Observer across your Trainium nodes with the Neuron Helm chart.

  • Confirm that the pods are running with kubectl and that the daemon is ready with nobs status.

  • Inspect device health and metrics on a node with nobs.

  • Open the Neuron Observer cluster overview dashboard in Grafana.

Prerequisites#

  • An Amazon EKS cluster with Trainium 2 (Trn2) or Trainium 3 (Trn3) node groups, with the Neuron driver loaded and the Neuron device plugin installed. This quickstart is validated for Trn2 and Trn3 nodes.

  • helm 3.8+ and kubectl configured for the cluster.

  • Network access to Amazon ECR Public from the workstation and cluster nodes.


Set up Neuron Observer metrics#

Complete steps 1 through 5 to install Prometheus and Grafana, install Neuron Observer, verify it, inspect a node, and view the dashboard.

Step 1: Install Prometheus and Grafana#

If the kube-prometheus-stack Helm chart is already installed in your cluster with the release name prometheus, skip this step. If you run a different Prometheus setup, see How to install and configure Neuron Observer on Amazon EKS for how to match the release label.

# Add the Helm repo
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update

# Install into a monitoring namespace
kubectl create namespace monitoring
helm install prometheus prometheus-community/kube-prometheus-stack \
  --namespace monitoring \
  --set prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues=false

The chart installs Prometheus and Grafana.

Step 2: Install Neuron Observer#

Deploy the Observer daemon across your Trainium nodes.

The command installs the per-node daemon (DaemonSet, port 7001), a PodMonitor so that Prometheus scrapes the daemon’s native /metrics endpoint, and the Grafana dashboards. It turns off the other components of the Neuron Helm chart that are enabled by default, so this release installs Neuron Observer only.

# Install the per-node daemon (DaemonSet, port 7001), let Prometheus
# scrape it, and create the Grafana dashboards.
helm upgrade -i neuron-observer oci://public.ecr.aws/neuron/neuron-helm-chart \
  --version 1.12.0 \
  --create-namespace --namespace neuron-observer \
  --set devicePlugin.enabled=false --set npd.enabled=false \
  --set observer.enabled=true \
  --set observer.monitoring.podMonitor.enabled=true \
  --set observer.monitoring.releaseLabel=prometheus \
  --set observer.monitoring.grafanaDashboards.enabled=true

Step 3: Verify the Observer components are running#

Confirm that the daemon pods are running and that the daemon is ready.

# Daemon pods (one per Trainium node)
kubectl get pods -n neuron-observer \
  -l app.kubernetes.io/name=neuron-observer -o wide

# Per-node liveness / readiness
kubectl exec -n neuron-observer <daemon-pod> -- nobs status

nobs status reports ready: true after the daemon completes its first collection cycle.

Step 4: Inspect a node with the nobs CLI#

Use the nobs CLI to inspect the device information and metrics that Observer collects on a node.

# Discovered Neuron devices + health verdict
kubectl exec -n neuron-observer <daemon-pod> -- nobs devices

# Per-device metrics, table view
kubectl exec -n neuron-observer <daemon-pod> -- nobs metrics --scope device

# Same data, JSON — pipeable to jq / control-plane scripts
kubectl exec -n neuron-observer <daemon-pod> -- nobs metrics --scope device -o json

Step 5: View the dashboard in Grafana#

Retrieve the Grafana admin password, port-forward the Grafana service, and open the Neuron Observer cluster overview dashboard.

kubectl --namespace monitoring get secrets prometheus-grafana \
  -o jsonpath="{.data.admin-password}" | base64 -d ; echo
kubectl port-forward -n monitoring svc/prometheus-grafana 3000:80
# Open http://localhost:3000 (username: admin)

In Grafana, open the Neuron Observer cluster overview dashboard.

You can also query the metrics directly in Prometheus:

# PromQL
# Cluster-wide: total uncorrectable HBM ECC events across the fleet.
# ECC counters use the neuron_device_ prefix with a _total suffix.
sum(neuron_device_mem_ecc_uncorrected_sum_total)

# One node: ECC is aggregated per node, so it carries instance_id only
# (no neuron_device_index label).
neuron_device_mem_ecc_uncorrected_sum_total{instance_id="<instance-id>"}

# One device on one node: core-scoped metrics carry the
# neuron_device_index label, so you can drill down.
neuron_core_utilization_avg{
  instance_id="<instance-id>", neuron_device_index="3"
}

Confirmation#

Neuron Observer is now monitoring your Trainium nodes. You verified it with nobs status, inspected devices and metrics with nobs, and viewed the cluster overview dashboard in Grafana.

Neuron Observer provides three Grafana dashboards: cluster overview, device health, and node diagnostics. The device health dashboard shows health-state counts and unhealthy devices.

Prometheus and Grafana cluster overview dashboard for Neuron Observer showing node, device, and NeuronCore counts, average NeuronCore utilization, average power utilization, active cores, NeuronCore utilization distribution and per-node utilization, power distribution and per-node power utilization, device memory usage, and effective FLOPS.

Fig. 156 Sample Prometheus and Grafana dashboard.#

Troubleshooting#

For common installation and export issues, FAQs, and public beta limitations, see the Troubleshooting and FAQs guide.

Next steps#

This document is relevant for: Trn2, Trn3