This topic describes performance metrics related to the number of sessions in an OceanBase cluster. These metrics are all_session and active_session. You can specify a statistical period to query statistics about the number of sessions in a single zone or on a single OBServer of an OceanBase cluster.
active_session
Definition
The number of active sessions in the OceanBase cluster.
Description
| Metric | Metric field name | Unit |
|---|---|---|
| active_session | active_session | count |
Calculation expression
sum(ob_active_session_num{@LABELS}) by (@GBLABELS)
all_session
Definition
The total number of sessions in the OceanBase cluster.
Description
| Metric | Metric field name | Unit |
|---|---|---|
| all_session | all_session | count |
Calculation expression
sum(ob_all_session_num{@LABELS}) by (@GBLABELS)