From: Tom Clegg Date: Mon, 26 Jun 2017 19:12:12 +0000 (-0400) Subject: 11901: Report db stats (notably OpenConnections) in /debug.json X-Git-Tag: 1.1.0~170^2~2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/c5a8ad7751e13560a6cde34395ea76f380c8a80d 11901: Report db stats (notably OpenConnections) in /debug.json Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- diff --git a/services/ws/event_source.go b/services/ws/event_source.go index 6a308b3a62..daf9a94cc1 100644 --- a/services/ws/event_source.go +++ b/services/ws/event_source.go @@ -263,6 +263,7 @@ func (ps *pgEventSource) DebugStatus() interface{} { "QueueDelay": stats.Duration(ps.lastQDelay), "Sinks": len(ps.sinks), "SinksBlocked": blocked, + "DBStats": ps.db.Stats(), } }