mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
update threshold
This commit is contained in:
@@ -76,7 +76,7 @@ func (t *PATUsageTracker) reportUsageBuckets() {
|
|||||||
if totalTokens > 0 {
|
if totalTokens > 0 {
|
||||||
for id, count := range snapshot {
|
for id, count := range snapshot {
|
||||||
t.histogram.Record(t.ctx, count)
|
t.histogram.Record(t.ctx, count)
|
||||||
if count > 120 {
|
if count > 60 {
|
||||||
log.Debugf("High PAT usage detected: token %s used %d times in the last minute", id, count)
|
log.Debugf("High PAT usage detected: token %s used %d times in the last minute", id, count)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user