Agent Metrics Bugfix
All checks were successful
release-tag / release-image (push) Successful in 2m11s

This commit is contained in:
2026-05-18 09:41:14 +02:00
parent b3d890ae28
commit f1d88e8fb3

View File

@@ -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