Completely uninstall all metrics service components and optionally preserve or delete data to cleanly remove the service without orphaned resources or configuration conflicts.
About this task
Warning:
Uninstallation is destructive and irreversible. Back up the metrics_service database before proceeding if you need to preserve historical metrics data.
Procedure
Method 1: Use installer playbook (recommended)
cd /path/to/aap-containerized-installer
ansible-playbook -i inventory uninstall.yml
The uninstall.yml playbook automatically removes all metrics service components:
Stops and disables systemd services
Removes containers
Deletes systemd unit files
Removes Podman secrets
Deletes volume directories
Removes firewall rules
Note:
Optional: To also drop the database, add database cleanup tasks to your inventory configuration.
Method 2: Manual uninstall
Use this method if you need granular control over uninstall steps.