This topic describes monitoring metrics related to server connections in an OBProxy cluster.
server
Definition
The number of connections established between an OBProxy cluster and the server at the current point in time.
Description
| Metric | Metric name | Unit |
|---|---|---|
| server | current_session_server | N/A |
Calculation expression
sum(odp_current_session{sessionType="server",@LABELS}) by (@GBLABELS)
server_connection_usage
Definition
The ratio between the value of the server metric and that of the max_connections parameter.
Description
| Metric | Metric name | Unit |
|---|---|---|
| server_connection_usage | server_connection_used_percent | % |
Calculation expression
100 * sum(odp_current_session{sessionType="server",@LABELS}) by (@GBLABELS) / sum(obproxy_server_max_connections{@LABELS}) by (@GBLABELS)