This topic describes the monitoring metrics related to latency and status in LogService.
logservice_replica_committed_end_scn_delay
Metric description
The delay of the end SCN for committed logs in LogService. This metric is used for the logservice_replica_committed_end_scn_delay alert (threshold ≥ 5000 ms / ≥ 10000 ms).
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| replica_committed_end_scn_delay | logservice_replica_committed_end_scn_delay | ms |
Calculation expression
avg(replica_committed_end_scn_delay{@LABELS}) by (@GBLABELS) / 1000
Prometheus collection
Collect the replica_committed_end_scn_delay metric from http://127.0.0.1:${monagent.logservice.exporter.port}/metrics`` usingprometheusInput` (the original unit is microseconds; divide by 1000 in the expression to convert to milliseconds).
logservice_boot_time_delta_seconds
Metric description
The startup time difference of the oblogservice process, used to detect process restarts. This metric is used for the logservice_process_stop alert (threshold > 10 s).
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| process_boot_time_seconds{name="oblogservice"} | logservice_boot_time_delta_seconds | s |
Calculation expression
max(delta(process_boot_time_seconds{name="oblogservice",@LABELS}[@INTERVAL])) by (@GBLABELS)
Prometheus collection
The OCP monagent collects the process_boot_time_seconds{name="oblogservice"} metric using the processInput plugin.
logservice_process_exists
Metric description
The survival status of the oblogservice process (1=alive, 0=non-existent). Used for the logservice_process_dead alert (expression: logservice_process_exists == 0).
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| process_exists{name="oblogservice"} | logservice_process_exists | - |
Calculation expression
process_exists{name="oblogservice",@LABELS}
Prometheus collection
OCP monagent collects the process_exists{name="oblogservice"} metric through the processInput plugin.
