this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add warning counter for non-active accounts in event processing

+3 -1
+2
cmd/relay/relay/ingest.go
··· 100 100 101 101 if !acc.IsActive() { 102 102 logger.Info("dropping commit message for non-active account", "status", acc.Status, "upstreamStatus", acc.UpstreamStatus) 103 + EventsWarningsCounter.WithLabelValues(hostname, "non-active").Add(1) 103 104 return nil 104 105 } 105 106 ··· 159 160 160 161 if !acc.IsActive() { 161 162 logger.Info("dropping sync message for non-active account", "status", acc.Status, "upstreamStatus", acc.UpstreamStatus) 163 + EventsWarningsCounter.WithLabelValues(hostname, "non-active").Add(1) 162 164 return nil 163 165 } 164 166
+1 -1
cmd/relay/relay/metrics.go
··· 11 11 Help: "The total number of events received", 12 12 }, []string{"pds"}) 13 13 14 - var eventsWarningsCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 14 + var EventsWarningsCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 15 15 Name: "events_warn_counter", 16 16 Help: "Events received with warnings", 17 17 }, []string{"pds", "warn"})