Using the Microprofile Metrics feature
You can monitor a z/OS® Connect native server by using Liberty Microprofile Metrics feature.
https://<container-host>:<port>/metrics
https
endpoint is used:https://localhost:9443/metrics
Authorize access to the metrics endpoint
The /metrics
endpoint is configured in the IBM® z/OS Connect server by default. To access the endpoint,
you must configure or disable authentication in the server configuration file. For more information,
see Monitoring with MicroProfile metrics.
For more information about how to configure server configuration files see, Overview of IBM z/OS Connect server configuration.
Open Liberty metrics
For a list of all REST endpoint-style metrics that are available for Open Liberty, see the metrics reference list.
Custom IBM z/OS Connect metrics
- Count of operation calls.
- Time taken for the operation calls.
These metrics are generated automatically for each of the operations that are defined in your OpenAPI.
Metric Prometheus name | Example | Description |
---|---|---|
application_<operation_name>
|
application_employeesGetTime_total |
A simple timer metric tracks the invocation counts. |
application_<operation_name><api_operation>
|
application_employeesGetTime_ |
The elapsed time in seconds for a z/OS Connect API operation to respond. |
application_<operation_name><api_operation>
|
application_employeesGetTime |
The maximum time in seconds for a z/OS Connect API operation to respond in the last minute. |
application_<operation_name><api_operation>
|
application_employeesGetTime |
The minimum time in seconds for a z/OS Connect API operation to respond in the last minute. |
application_<operation_name><api_operation>
|
application_employeesGetCount |
The total number of calls to a z/OS Connect API operation. |
Metric formats
- Prometheus format, which is a compatible with the Prometheus monitoring tool.
- JSON format, which is a JSON representation of the metrics.
By default, metric data is emitted in Prometheus format. Metric data can be retrieved in JSON
format by configuring the Accept
header of your request to the
application/json
value. For more information, see MicroProfile metrics REST API.