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. |
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