Storing Data from the Test Monitor Service on an External PostgreSQL Server
- Updated2025-11-26
- 2 minute(s) read
Storing Data from the Test Monitor Service on an External PostgreSQL Server
Configure SystemLink Enterprise to store data from the Test Monitor Service on an external PostgreSQL server.
- Create a database for the Test Monitor Service on your database server. A good default name for this database is nisystemlink.
- Create a user with CREATE privileges for the database.
-
With this information, including the user credentials, choose one of the
following configuration options.
Note Future updates of the Test Monitor Service chart may require modifications to the schema and table. To perform these modifications, the Test Monitor Service chart must act as the user that owns the schema and tables. In addition to the user that handles day-to-day operations, you can specify a separate user with higher permissions to perform database migrations.
Option Steps Use a PostgreSQL connection string stored as a Kubernetes secret. - In systemlink-secrets.yaml, configure the testmonitorservice.secrets.database.connectionString value with the user to use for day-to-day operation.
- Optional: To specify a user with ownership of the
schema and tables to perform database migrations,
configure the following settings.
- In systemlink-secrets.yaml, configure the testmonitorservice.secrets.database.migrationConnectionString value with the user that owns the schema.
- In systemlink-values.yaml, configure the testmonitorservice.database.connectionString.migrationConnectionStringKey value.
Note You can also manually create these secrets if you are not managing secrets in the Helm chart.Configure the individual connection parameters for the database in the Helm chart. - In systemlink-values.yaml, comment out the testmonitorservice.database.connectionString group.
- Uncomment the testmonitorservice.database.connectionInfo group.
- Configure the testmonitorservice.database.connectionInfo.user value to the user to use for day-to-day operation.
- In systemlink-secrets.yaml, configure the testmonitorservice.secrets.database.connectionPassword value or create the required secret manually.
- Optional: To specify a user with ownership of the
schema and tables to perform database migrations,
configure the following settings.
- In systemlink-values.yaml, configure the testmonitorservice.database.connectionInfo.migrationUser to the user that owns the schema and tables.
- Configure the testmonitorservice.database.connectionInfo.migrationPasswordKey value.
- In systemlink-secrets.yaml, configure the testmonitorservice.secrets.database.migrationConnectionPassword value to the password to the user configured in testmonitorservice.database.connectionInfo.migrationUser or create the required secret manually.
- Configure testmonitorservice.secrets.database.connectionPassword value to the password to the user configured in testmonitorservice.database.connectionInfo.user.
The Test Monitor Service creates the required database schema and tables on initial launch of the service. You can then revoke ownership of the database schema and tables from the provided user. The Test Monitor Service requires a user with the following privileges for day-to-day operation.Location Privileges On the database specified in the configuration CONNECT On the "TestMonitor" schema CREATE USAGE
On all tables within the "TestMonitor" schema DELETE INSERT
SELECT
UPDATE
Once tables are created, SystemLink Enterprise is responsible for the TestMonitor schema and all tables within it. Users must access schema data through the SystemLink web application or the Test Monitor Service API. The schema and schema data are internal implementations of the Test Monitor Service. The schema and schema data might change without notice.
Related Information
- Components of a SystemLink Enterprise System
SystemLink Enterprise implements a server-client architecture to transmit data over a connected network between your systems and server. Use the minimum required SystemLink Enterprise system components as a starting point for building your system.
- Preparing Certificates
Obtain certificate files for authentication. Reference these certificates when installing SystemLink Enterprise.