Skip to content

Commit

Permalink
feat(metrics): new metrics and dashboard for aggregator (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
IAvecilla authored Oct 10, 2024
1 parent e1e9b6e commit d7c442f
Show file tree
Hide file tree
Showing 3 changed files with 233 additions and 161 deletions.
1 change: 1 addition & 0 deletions aggregator/internal/pkg/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ func (agg *Aggregator) AddNewTask(batchMerkleRoot [32]byte, senderAddress [20]by
agg.logger.Fatalf("BLS aggregation service error when initializing new task: %s", err)
}

agg.metrics.IncAggregatorReceivedTasks()
agg.taskMutex.Unlock()
agg.AggregatorConfig.BaseConfig.Logger.Info("- Unlocked Resources: Adding new task")
agg.logger.Info("New task added", "batchIndex", batchIndex, "batchIdentifierHash", "0x"+hex.EncodeToString(batchIdentifierHash[:]))
Expand Down
Loading

0 comments on commit d7c442f

Please sign in to comment.