Metrics service configuration variables
Review configuration variables to customize metrics service deployment, database connections, security settings, and operational parameters.
Inventory variables reference
Required variables for automationmetrics group
The following variables must be defined when deploying metrics service with the containerized installer:
| Variable | Default | Required/Optional | Description |
|---|---|---|---|
automationmetrics_pg_host |
(none) | Required | PostgreSQL host for the metrics database |
automationmetrics_pg_password |
(none) | Required* | Password for the metrics database user. *Not required whenautomationmetrics_pg_cert_auth: true is set. |
automationmetrics_controller_read_pg_host |
(none) | Required* | PostgreSQL host for the controller database |
automationmetrics_controller_read_pg_password |
(none) | Required* | Password for the read-only controller database user. *Not required whenautomationmetrics_pg_cert_auth: true is set. |
Optional variables with defaults
| Variable | Default | Description |
|---|---|---|
automationmetrics_pg_port |
5432 |
PostgreSQL port |
automationmetrics_pg_database |
metrics_service |
Database name |
automationmetrics_pg_username |
metrics_service |
Database user |
automationmetrics_api_port |
8006 |
Port the metrics service API listens on (Gunicorn) |
automationmetrics_nginx_http_port |
8087 |
nginx HTTP port (redirects to HTTPS) |
automationmetrics_nginx_https_port |
8450 |
nginx HTTPS port |
automationmetrics_pg_cert_auth |
false |
Use certificate authentication instead of passwords |
Note on certificate authentication: When automationmetrics_pg_cert_auth: true, password variables (automationmetrics_pg_password and automationmetrics_controller_read_pg_password) are not required. The service uses PostgreSQL certificate-based authentication instead.
Dashboard and feature flags
| Variable | Default | Required/Optional | Description |
|---|---|---|---|
FEATURE_DASHBOARD_COLLECTION_ENABLED |
false |
Optional | Enable automation dashboard data collection. Whentrue, metrics service collects dashboard-specific metrics (cost data, ROI calculations, and pricing information) in addition to standard anonymized metrics. Maps to environment variableMETRICS_SERVICE_FEATURE_ENABLED__DASHBOARD_COLLECTION. |
FEATURE_INDIRECT_NODE_COLLECTION_ENABLED |
false |
Optional |
Enable daily collection of indirect node audit data from the controller database. Set at the Gateway level as an AAPFlag, not through |
Dashboard feature flag
Inventory Variable: FEATURE_DASHBOARD_COLLECTION_ENABLED
Default: false
Purpose: Enable automation dashboard data collection
When enabled (FEATURE_DASHBOARD_COLLECTION_ENABLED: true):
- Collects dashboard-specific data (cost, ROI, pricing information)
- Runs on 6-hourly schedule to minimize database impact
Indirect node collection feature flag
Flag: FEATURE_INDIRECT_NODE_COLLECTION_ENABLED
Default: false
Level: Gateway AAPFlag (platform-level)
Restart required: No
Purpose: Enable daily collection of indirect node audit data from the controller database
When enabled (FEATURE_INDIRECT_NODE_COLLECTION_ENABLED: true):
- Collects daily snapshots of API-managed indirect nodes (for example, network devices managed through Ansible collections)
- Includes indirect node counts grouped by Ansible collection and module in the anonymized payload sent to Red Hat
- Host names and organization names are stripped from the payload before transmission
This flag is set at the Gateway level, not through automationmetrics_* inventory variables. No additional inventory configuration is required.
Feature flags resolve through the following priority chain (highest to lowest):
- DB Setting (
dynamic_settingstable) - Dynaconf / environment variable
- Direct settings attribute
- DAB AAPFlag (Gateway-level)
- Default value
Events collector settings
The events collector (main_jobevent_service) processes job event data to extract collection, module, and role usage statistics. These variables are configurable as Django settings or environment variables without a code change. Use them to control collection volume on large deployments.
| Variable | Default | Description |
|---|---|---|
JOBEVENT_ROW_LIMIT |
200,000 | Maximum number of job event rows to process per hourly collection cycle. Set to 0 for unlimited processing. |
JOBEVENT_JOB_LIMIT |
1,000 | Maximum number of jobs to process for event data per hourly collection cycle. Set to 0 for unlimited processing. |
JOBEVENT_ROW_LIMIT or JOBEVENT_JOB_LIMIT to 0 removes the limit entirely, causing the collector to process all available events. On large deployments with high job volumes, this can significantly increase collection time and database load. To effectively disable event collection for performance reasons, set both values to 1.