Enable automation dashboard during operator installation
Enable automation dashboard during operator installation
Enable automation dashboard using declarative Custom Resource configuration to leverage operator-managed dashboard deployment with automatic feature flag propagation to metrics service.
Before you begin
AnsibleAutomationPlatform CR has been deployed and reconciled successfully
Metrics service enabled in the AnsibleAutomationPlatform CR (spec.metrics section present with disabled: false)
You are running Ansible Automaton Platform operator (aap-operator) and metrics service operator (automationmetricsservice-operator) running
Understanding of Technology Preview features and limitations
Important
Technology Preview: Automation dashboard is a Technology Preview feature in Red Hat Ansible Automation Platform 2.7 and is disabled by default. You must explicitly enable it by setting spec.feature_flags.FEATURE_DASHBOARD_COLLECTION_ENABLED: true in your AnsibleAutomationPlatform Custom Resource.
About this task
This procedure enables automation dashboard for Red Hat Ansible Automation Platform 2.7 deployments using the operator on Kubernetes or OpenShift. By configuring the AnsibleAutomationPlatform Custom Resource with the dashboard feature flag, the operator automatically propagates the configuration to metrics service within the reconciliation cycle (typically under 2 minutes). This declarative approach eliminates manual pod configuration and enables version-controlled, GitOps-compatible dashboard state management with 100% operator-managed deployment.
Procedure
Edit the AnsibleAutomationPlatform Custom Resource
Edit your existing AnsibleAutomationPlatform CR to enable the dashboard collection feature flag. The feature flag is set at the top level of spec, not inside spec.metrics.
The Ansible Automation Platform operator reconciles the AnsibleAutomationPlatform CR and propagates FEATURE_DASHBOARD_COLLECTION_ENABLED to the MetricsService CR. Check the Ansible Automation Platform operator logs:
After the ConfigMap is updated, the metrics service pods restart automatically to pick up the new environment variable. Confirm three pods are running:
There is no separate settings.yaml file in the operator deployment. All metrics service configuration is managed by using the <name>-metrics-env-properties ConfigMap.
Verify dashboard tables created
# Get database pod
DB_POD=$(kubectl get pods -n <namespace> | grep postgres | awk '{print $1}')
# Check dashboard tables exist
kubectl exec -n <namespace> $DB_POD -- \
psql -U metrics_service -d metrics_service \
-c "SELECT table_name FROM information_schema.tables WHERE table_name LIKE 'dashboard%';"
Expected output: Six dashboard tables:
dashboard_job_data
dashboard_job_data_host_summary
dashboard_job_data_label
dashboard_template_metadata
dashboard_subscription_cost
dashboard_filter_set
Results
Dashboard is successfully enabled when:
spec.feature_flags.FEATURE_DASHBOARD_COLLECTION_ENABLED: true is present in the AnsibleAutomationPlatform CR
We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
Making open source more inclusive
Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.
About Red Hat Documentation
We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.