Using the Microprofile Metrics feature
You can monitor an IBM® z/OS® Connect Server by using Liberty Microprofile Metrics feature.
zosConnect-3.0 Applies to zosConnect-3.0.
mpMetrics-3.0 is enabled by default in z/OS Connect and can be accessed via the following REST
endpoint:https://<container-host>:<port>/metrics
https endpoint is
used:https://localhost:9443/metricsAuthorize access to the metrics endpoint
The /metrics endpoint is configured in the 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
MicroProfile Metrics 3.0.
For more information about how to configure server configuration files, see Overview of IBM z/OS Connect configuration files.
Open Liberty metrics
For a list of all REST endpoint-style metrics that are available for Open Liberty, see the
metrics reference list.
Custom 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:
application_<operation_name><api_operation>Time_total - Example:
application_employeesGetTime_total
- Metric Prometheus name:
application_<operation_name><api_operation>Time_elapsed Time_seconds{method="api_operation"} - Example:
application_employeesGetTime_elapsedTime_seconds {method="GET"}
- Metric Prometheus name:
application_<operation_name><api_operation>Time_maxTimeDuration_seconds {method="api_operation"} - Example:
application_employeesGetTime_maxTimeDuration_seconds {method="GET"}
- Metric Prometheus name:
application_<operation_name><api_operation>Time_minTimeDuration_seconds {method="api_operation"} - Example:
application_employeesGetTime_minTimeDuration_seconds {method="GET"}
- Metric Prometheus name:
application_<operation_name><api_operation>Count_total - Example:
application_employeesGetCount_total
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.