TimescaleDB plugin
Overview
The TimescaleDB plugin connects QALIPSIS to TimescaleDB.
- Technology addressed
-
-
TimescaleDB: https://www.tigerdata.com/timescaledb
- Dependency
-
io.qalipsis:plugin-timescaledb - Namespace in scenario
-
timescaledb() - Client library
-
https://www.tigerdata.com/docs/deploy/self-hosted/tooling/install-toolkit
Analytics
QALIPSIS can publish the meters and events collected during a campaign to TimescaleDB through dedicated publishers.
Configure the publishers in the factory configuration, separate from the scenario DSL. Refer to Provide the configuration to QALIPSIS for information about specifying the configuration to QALIPSIS.
| TimescaleDB requires valid credentials for authentication. Ensure that the username and password for a properly configured TimescaleDB user are provided in the configuration. |
Meters
The meters publisher writes the meter snapshots collected during a campaign as rows into the configured TimescaleDB schema.
meters:
export:
timescaledb:
enabled: true
host: localhost
port: 5432
database: qalipsis
schema: meters
username: qalipsis_user
password: qalipsis-pwd
prefix: qalipsis
enable-ssl: false
ssl-mode: PREFER
ssl-root-cert:
ssl-cert:
ssl-key:
min-idle-connection: 1
max-pool-size: 1
init-schema: true
The parameters used to configure the publication of meters to TimescaleDB are described in the table below.
| Parameter | Description |
|---|---|
|
Activates the publication of meters to TimescaleDB. Must be set to |
|
Hostname or IP address of the TimescaleDB/PostgreSQL server. |
|
Port on which the TimescaleDB/PostgreSQL server listens. |
|
Name of the TimescaleDB database receiving the meters. |
|
Name of the schema where the meters are stored. |
|
Name of the user used for basic authentication when connecting to TimescaleDB. |
|
Password of the user used for basic authentication when connecting to TimescaleDB. |
|
Prefix prepended to every metric name when publishing to TimescaleDB. |
|
Enables SSL/TLS encryption for the database connection. |
|
SSL mode applied to the database connection. Acceptable values are |
|
Path to the SSL root certificate file used for SSL/TLS connections. |
|
Path to the SSL client certificate file used for SSL/TLS connections. |
|
Path to the SSL client private key file used for SSL/TLS connections. |
|
Minimum number of idle database connections maintained in the connection pool. |
|
Maximum number of database connections in the connection pool. |
|
Creates or updates the meter schema at startup when set to |
Events
The events publisher buffers the events emitted during a campaign and writes them in bulk as rows into the configured TimescaleDB schema.
events:
export:
timescaledb:
enabled: true
min-level: INFO
host: localhost
port: 5432
database: qalipsis
schema: events
linger-period: 10s
batch-size: 20000
publishers: 1
username: qalipsis_user
password: qalipsis-pwd
enable-ssl: false
ssl-mode: PREFER
ssl-root-cert:
ssl-cert:
ssl-key:
init-schema: true
The parameters used to configure the publication of events to TimescaleDB are described in the table below.
| Parameter | Description |
|---|---|
|
Activates the publication of events to TimescaleDB. Must be set to |
|
Minimum event level published. Acceptable values are |
|
Hostname or IP address of the TimescaleDB/PostgreSQL server. |
|
Port on which the TimescaleDB/PostgreSQL server listens. |
|
Name of the TimescaleDB database receiving the events. |
|
Name of the schema where the events are stored. |
|
Maximum time the events are buffered before forcing a flush to TimescaleDB, even when the batch size is not reached. |
|
Maximum number of events buffered between two publications to TimescaleDB. |
|
Number of concurrent publishers that can send event batches to TimescaleDB. |
|
Name of the user used for basic authentication when connecting to TimescaleDB. |
|
Password of the user used for basic authentication when connecting to TimescaleDB. |
|
Enables SSL/TLS encryption for the database connection. |
|
SSL mode applied to the database connection. Acceptable values are |
|
Path to the SSL root certificate file used for SSL/TLS connections. |
|
Path to the SSL client certificate file used for SSL/TLS connections. |
|
Path to the SSL client private key file used for SSL/TLS connections. |
|
Creates or updates the event schema at startup when set to |
- Reference Documentation
-
Refer to Monitoring test campaigns for more information about meter and event configuration parameters.