Metrics
The metrics module helps understand how users consume documentation on the reading portal: what they read, for how long, and which sections are most useful. This data helps make decisions: how to improve articles, navigation, and content depth.
Configure image for module
Start PostgreSQL (Docker example, but any method works):
docker run --name gramax-postgres \ -e POSTGRES_USER={your_db_user} \ -e POSTGRES_PASSWORD={your_db_password} \ -e POSTGRES_DB={your_db_name} \ -p 5432:5432 \ -d postgres:18-alpineSet variables for the
enterpriseservice image:Variable
Description
Example value
ENTERPRISE_DB_TYPEDBMS type for connection. Currently only
postgresis supported. The field is required.postgresENTERPRISE_DB_USERDatabase username. Must match
POSTGRES_USERused when creating the container.postgresENTERPRISE_DB_PASSWORDDatabase user password. Must match
POSTGRES_PASSWORDused when creating the container.postgresENTERPRISE_DB_HOSTHost address where the database is running.
localhostENTERPRISE_DB_PORTPort listened to by PostgreSQL.
5432ENTERPRISE_DB_NAMEDatabase name. Must match
POSTGRES_DBused when creating the container.metricsVerify service startup: on launch, the app connects to the DB, creates tables, and runs migrations.
Enable metrics module in app
Open the Gramax Enterprise Server admin panel: Settings → Modules.
Enable the metrics module.

Open any metrics page and verify it is active.