File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed
services/postprocessing/pkg Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change 3636 Name : "events_redelivered" ,
3737 Help : "Number of redelivered events" ,
3838 })
39- inProgress = promauto .NewGauge (prometheus.GaugeOpts {
40- Namespace : Namespace ,
41- Subsystem : Subsystem ,
42- Name : "in_progress" ,
43- Help : "Number of postprocessing events in progress" ,
44- })
4539 finished = promauto .NewCounterVec (prometheus.CounterOpts {
4640 Namespace : Namespace ,
4741 Subsystem : Subsystem ,
@@ -64,7 +58,6 @@ type Metrics struct {
6458 EventsOutstandingAcks prometheus.Gauge
6559 EventsUnprocessed prometheus.Gauge
6660 EventsRedelivered prometheus.Gauge
67- InProgress prometheus.Gauge
6861 Finished * prometheus.CounterVec
6962 Duration * prometheus.HistogramVec
7063}
@@ -76,7 +69,6 @@ func New() *Metrics {
7669 EventsOutstandingAcks : eventsOutstandingAcks ,
7770 EventsUnprocessed : eventsUnprocessed ,
7871 EventsRedelivered : eventsRedelivered ,
79- InProgress : inProgress ,
8072 Finished : finished ,
8173 Duration : duration ,
8274 }
Original file line number Diff line number Diff line change @@ -205,7 +205,6 @@ func (pps *PostprocessingService) processEvent(e raw.Event) error {
205205 ImpersonatingUser : ev .ImpersonatingUser ,
206206 StartTime : time .Now (),
207207 }
208- pps .metrics .InProgress .Inc ()
209208 next = pp .Init (ev )
210209 case events.PostprocessingStepFinished :
211210 if ev .UploadID == "" {
@@ -256,7 +255,6 @@ func (pps *PostprocessingService) processEvent(e raw.Event) error {
256255 }
257256 })
258257 case events.UploadReady :
259- pps .metrics .InProgress .Dec ()
260258 // the upload failed - let's keep it around for a while - but mark it as finished
261259 pp , err = pps .getPP (pps .store , ev .UploadID )
262260 if err != nil {
You can’t perform that action at this time.
0 commit comments