Skip to content
Snippets Groups Projects
Commit 3e71d082 authored by Igor Drozdov's avatar Igor Drozdov
Browse files

Add missing SshdSessionEstablishedDuration metrics

parent 0d69e6d7
Branches id-login-grace-time-impl
Tags
No related merge requests found
......@@ -122,6 +122,7 @@ func (c *connection) handleRequests(ctx context.Context, sconn *ssh.ServerConn,
metrics.SshdSessionDuration.Observe(time.Since(started).Seconds())
}(time.Now())
c.establishSessionDuration = time.Since(c.started).Seconds()
metrics.SshdSessionEstablishedDuration.Observe(c.establishSessionDuration)
defer c.concurrentSessions.Release(1)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment