IBM webMethods Metering Agent Properties and Environment Variables
You can configure the properties and environment variables described in the following table. The properties in the first column can be modified either in the metering.agent.properties file or as Java System properties.
| Property | Corresponding Environment Variable | Description |
|---|---|---|
metering.server.url |
METERING_
SERVER_URL
|
The URL of the metering aggregator server REST API. |
metering.accumulation.period |
METERING_
ACCUMULATION_
PERIOD
|
The period in seconds for which data is
accumulated before a log record is produced. Important: The minimum
accumulation period is 5 seconds. If you configure a smaller period, the value
will be changed to 5 seconds.
Default: Note: If you run your product instances in containers, make sure that this period
is shorter than the estimated lifespan of the containers. IBM recommends that you configure this property to at least
300 (5 minutes), but you can adjust this value for short-lived containers. This
guarantees that all usage data is accumulated before a container stops
running.
|
metering.report.period |
METERING_
REPORT_PERIOD
|
The period in seconds after which data is
pushed to the metering server. Use a value that is larger than the metering.accumulation.period property. Default: Note: If you run your product instances in containers, make sure that this period
is shorter than the estimated lifespan of the containers. IBM recommends that you configure this property to at least
600 (10 minutes), but you can adjust this value for short-lived containers. This
guarantees that all usage data is accumulated before a container stops
running.
|
metering.proxy.type |
METERING_
PROXY_TYPE
|
Тhe type of the
proxy that the metering client uses.
Valid values are:
|
metering.proxy.address |
METERING_
PROXY_ADDRESS
|
The proxy address in a <host>:<port> format that the metering client uses. Configure this property only if you use a metering proxy. |
metering.proxy.user |
METERING_
PROXY_USER
|
The proxy username that the metering client uses. Configure this property only if you use a metering proxy with authentication. By default, HTTP basic authentication is disabled in JVM runtimes for security reasons. To use proxy authentication, you must enable basic authentication by adding the following line in the custom_wrapper.conf file of each product that uses IBM webMethods Metering:
|
metering.proxy.pass |
METERING_
PROXY_PASS
|
The proxy password that the metering client uses. Configure this property only if you use a metering proxy with authentication. Depending on the method that you use to provide a password, ensure that you escape password characters that are specific for the selected method. Valid characters:
Note: Passwords cannot contain colon
(:) or any regional
characters. |
metering.server.connect.timeout |
METERING_
SERVER_CONNECT_
TIMEOUT
|
Тhe time in
milliseconds to establish the initial TCP connection when the metering client
calls the server REST endpoint. This is also the time to start the request.
Default:
|
metering.server.read.timeout |
METERING_
SERVER_READ_
TIMEOUT
|
The maximum time in
milliseconds without data transfer over the TCP connection to the server. This
is also the time that it takes for the server to respond. When this time
passes, the request fails.
Default:
|
sag.install.root
|
SAG_INSTALL_ROOT | The absolute path to the IBM installation root directory. Use this path only as a Java system property or an environment variable. |
metering.truststore.file |
METERING_
TRUSTSTORE_FILE
|
The absolute path to the metering client
truststore that is used for HTTPS connections. Add this value in any of the
following cases:
|
metering.truststore.password |
METERING_
TRUSTSTORE_
PASSWORD
|
The password for the metering client truststore. Configure this property only if you use a truststore. |
metering.runtime.alias |
METERING_
RUNTIME_ALIAS
|
An alias of the webMethods product instance or a group of instances, for which usage data is measured. |
metering.log.level |
METERING_
LOG_LEVEL
|
The level of log
messages that are logged on the console.
Valid values are:
|