File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1203,6 +1203,11 @@ func (a *agent) startReportingConnectionStats(ctx context.Context) {
1203
1203
stats .TxPackets += int64 (counts .TxPackets )
1204
1204
}
1205
1205
1206
+ // Load the latest startup script stats. These stats are static
1207
+ // once the agent has started.
1208
+ stats .StartupScriptNs = a .stats .startScriptNs .Load ()
1209
+ stats .StartupScriptSuccess = a .stats .startScriptSuccess .Load ()
1210
+
1206
1211
// The count of active sessions.
1207
1212
sshStats := a .sshServer .ConnStats ()
1208
1213
stats .SessionCountSSH = sshStats .Sessions
Original file line number Diff line number Diff line change @@ -575,7 +575,6 @@ type Stats struct {
575
575
// that are normal, non-tagged SSH sessions.
576
576
SessionCountSSH int64 `json:"session_count_ssh"`
577
577
578
- // Script stats relate to all scripts executed by the agent.
579
578
// StartupScriptNs is the duration in nano seconds the startup scripts
580
579
// took to execute. If there are no scripts, this still has some value > 0.
581
580
// This is because the act of "no script" still takes time to eval, and still
You can’t perform that action at this time.
0 commit comments