Skip to content

monitoring: Database connections monitoring

Administrator requested to merge better-sql-stats-v2 into main

Created by: tsenart

This PR adds database connection monitoring for each service that connects to Postgres. I'm introducing this to validate the hypothesis that we're contending on available connections on sourcegraph.com, which if true, explains sporadic increases in latency across the board.

This has been tested with every service running locally to avoid the duplicate metric registration issue that caused an outage on Friday.

Screenshot from 2021-07-03 17-14-17

Merge request reports

Loading