This document is relevant for: Trn2, Trn3

How to uninstall Neuron Observer#

Overview#

Remove the Neuron Observer Helm release and its namespace. Then remove the resources you created only for Neuron Observer: the in-cluster monitoring stack, the ADOT add-on and cert-manager, and the collector IAM role. Skip any resource that other workloads still use.

Instructions#

1: Remove Neuron Observer

helm uninstall neuron-observer --namespace neuron-observer
kubectl delete namespace neuron-observer

2: (Optional) Remove the monitoring stack

If you installed the monitoring stack only for Neuron Observer and no longer need it elsewhere, remove it:

helm uninstall prometheus -n monitoring

3: (Optional) Remove the ADOT add-on and cert-manager

If you installed the ADOT add-on and cert-manager only for the AMP or CloudWatch option and no other workloads use them, remove them:

aws eks delete-addon --cluster-name <your-cluster-name> --addon-name adot --region <REGION>
kubectl delete -f https://github.com/cert-manager/cert-manager/releases/download/v1.17.0/cert-manager.yaml

4: (Optional) Remove the collector IAM resources

If you created the Pod Identity association and the neuron-observer-pod-identity role for the AMP or CloudWatch option, remove them. Deleting the namespace in step 1 does not remove the association or the role.

# Find the association for the collector service account
aws eks list-pod-identity-associations --cluster-name <your-cluster-name> --region <REGION> \
  --namespace neuron-observer --service-account neuron-observer-otel

# Delete it by association ID
aws eks delete-pod-identity-association --cluster-name <your-cluster-name> --region <REGION> \
  --association-id <association-id>

# Remove the inline policies you attached, then the role
aws iam delete-role-policy --role-name neuron-observer-pod-identity \
  --policy-name neuron-observer-amp-permissions
aws iam delete-role-policy --role-name neuron-observer-pod-identity \
  --policy-name neuron-observer-cloudwatch-permissions
aws iam delete-role --role-name neuron-observer-pod-identity