Skip to content

Commit

Permalink
feat(da): register metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxcanfly committed Oct 4, 2024
1 parent 2178e75 commit 0847d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ func main() {
if metricsEnabled {
go func() {
log.Printf("Starting metrics server on %v...\n", metricsAddress)
http.Handle("/metrics", promhttp.Handler())
err := http.ListenAndServe(metricsAddress, nil)
if err != nil {
log.Fatalf("Failed to serve metrics: %v", err)
}
http.Handle("/metrics", promhttp.Handler())
}()
}

metrics := sequencing.DefaultMetricsProvider(metricsEnabled, hex.EncodeToString([]byte(da_namespace)))
metrics := sequencing.DefaultMetricsProvider(metricsEnabled, da_namespace)
centralizedSeq, err := sequencing.NewSequencer(da_address, da_auth_token, namespace, batchTime, metrics)
if err != nil {
log.Fatalf("Failed to create centralized sequencer: %v", err)
Expand Down

0 comments on commit 0847d53

Please sign in to comment.