Skip to content

Commit

Permalink
fix(metrics): Ensure that unassigned accounts are included in the 'di…
Browse files Browse the repository at this point in the history
…sconnectedä state count
  • Loading branch information
andris9 committed Oct 23, 2024
1 parent 86afe83 commit d502425
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2033,6 +2033,8 @@ async function collectMetrics() {
}
}

metricsResult.disconnected = (Number(metricsResult.disconnected) || 0) + (unassigned ? unassigned.size : 0);

Object.keys(metricsResult).forEach(status => {
metrics.imapConnections.set({ status }, metricsResult[status]);
});
Expand Down

0 comments on commit d502425

Please sign in to comment.