this repo has no description
0
fork

Configure Feed

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

Rename EventsWarningsCounter to eventsWarningsCounter for consistency and update inactive account warning label

+3 -3
+2 -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 + eventsWarningsCounter.WithLabelValues(hostname, "inactive-account").Add(1) 104 104 return nil 105 105 } 106 106 ··· 160 160 161 161 if !acc.IsActive() { 162 162 logger.Info("dropping sync message for non-active account", "status", acc.Status, "upstreamStatus", acc.UpstreamStatus) 163 - EventsWarningsCounter.WithLabelValues(hostname, "non-active").Add(1) 163 + eventsWarningsCounter.WithLabelValues(hostname, "inactive-account").Add(1) 164 164 return nil 165 165 } 166 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"})