Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 63aff5e

Browse files
committed
1min
1 parent 663b5d5 commit 63aff5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/prometheusmetrics/prometheusmetrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func Workspaces(ctx context.Context, registerer prometheus.Registerer, db databa
119119
// Agents tracks the total number of workspaces with labels on status.
120120
func Agents(ctx context.Context, logger slog.Logger, registerer prometheus.Registerer, db database.Store, coordinator *atomic.Pointer[tailnet.Coordinator], derpMap *tailcfg.DERPMap, agentInactiveDisconnectTimeout, duration time.Duration) (context.CancelFunc, error) {
121121
if duration == 0 {
122-
duration = 15 * time.Second // TODO 5 * time.Minute
122+
duration = 1 * time.Minute
123123
}
124124

125125
agentsGauge := prometheus.NewGaugeVec(prometheus.GaugeOpts{

0 commit comments

Comments
 (0)