Commit e7ca86a
committed
Fix GetAppClusteringInfo counter accounting
GetAppClusteringInfo() called IncrementRequestCounter() on both the
error and success paths. IncrementRequestCounter only bumps
totalRequests, not errors or successfulRequests, so every clustering
probe silently widened the gap between ovn_requests_total and
ovn_successful_requests_total + ovn_failed_requests_total.
Any dashboard computing a success ratio as
ovn_successful_requests_total / ovn_requests_total therefore saw an
artificial ceiling below 100% even when nothing was actually failing.
Use IncrementErrorCounter on the failure path and
IncrementSuccessCounter on the success path so the three request
counters stay consistent (total = successful + failed).
Signed-off-by: Michele Palazzi <sysdadmin@m1k.cloud>1 parent df20bd4 commit e7ca86a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1097 | 1097 | | |
1098 | 1098 | | |
1099 | 1099 | | |
1100 | | - | |
| 1100 | + | |
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
| |||
1106 | 1106 | | |
1107 | 1107 | | |
1108 | 1108 | | |
1109 | | - | |
| 1109 | + | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | 1112 | | |
| |||
0 commit comments