Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gitlab Shell
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
What's new
5
Snippets
Groups
Projects
gitlab-org
Gitlab Shell
Commits
3e71d082
Commit
3e71d082
authored
3 years ago
by
Igor Drozdov
Browse files
Options
Downloads
Patches
Plain Diff
Add missing SshdSessionEstablishedDuration metrics
parent
0d69e6d7
Branches
id-login-grace-time-impl
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
internal/sshd/connection.go
+1
-0
1 addition, 0 deletions
internal/sshd/connection.go
with
1 addition
and
0 deletions
internal/sshd/connection.go
+
1
−
0
View file @
3e71d082
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment