Skip to content

monitoring: Fix dbconn wait monitoring

Administrator requested to merge fix-dbconn-wait-monitoring into main

Created by: tsenart

Yesterday I introduced a completely bogus change. The stats that db.Stats() returns doesn't permit us recording a histogram of blocked durations because it only keeps ever increasing counters. The best we can do is compute a mean / avg over time, which should be good enough to spot trends, but not good enough to spot major outliers (which we'd want to use a high percentile for).

Merge request reports

Loading