Agent Metrics Bugfix
All checks were successful
release-tag / release-image (push) Successful in 2m11s
All checks were successful
release-tag / release-image (push) Successful in 2m11s
This commit is contained in:
7
main.go
7
main.go
@@ -5269,6 +5269,13 @@ func buildSQLMatchCondition(r DynamicRule) (string, []any) {
|
||||
}
|
||||
|
||||
func (s *server) runDetectionsOnce() {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), s.cfg.DetectionInterval)
|
||||
defer cancel()
|
||||
|
||||
if err := s.detector.updateAgentMetrics(ctx); err != nil {
|
||||
s.logger.Printf("update agent metrics: %v", err)
|
||||
}
|
||||
|
||||
type ruleSpec struct {
|
||||
name string
|
||||
timeout time.Duration
|
||||
|
||||
Reference in New Issue
Block a user