prom: improve helptext
This commit is contained in:
		| @@ -15,7 +15,7 @@ var ( | |||||||
| 	promShipperMongoSent = promauto.NewCounterVec(prom.CounterOpts{ | 	promShipperMongoSent = promauto.NewCounterVec(prom.CounterOpts{ | ||||||
| 		Subsystem: "shipper", | 		Subsystem: "shipper", | ||||||
| 		Name:      "sent", | 		Name:      "sent", | ||||||
| 		Help:      "Items successfully committed to mongo", | 		Help:      "Log lines successfully committed to mongo", | ||||||
| 	}, []string{"filename"}) | 	}, []string{"filename"}) | ||||||
| 	promShipperMongoSentError = promauto.NewCounterVec(prom.CounterOpts{ | 	promShipperMongoSentError = promauto.NewCounterVec(prom.CounterOpts{ | ||||||
| 		Subsystem: "shipper", | 		Subsystem: "shipper", | ||||||
| @@ -27,10 +27,10 @@ var ( | |||||||
| 		Name:      "lines_parsing_errors", | 		Name:      "lines_parsing_errors", | ||||||
| 		Help:      "Errors while parsing log line suffixes", | 		Help:      "Errors while parsing log line suffixes", | ||||||
| 	}, []string{"filename"}) | 	}, []string{"filename"}) | ||||||
| 	promShipperQueueItems = promauto.NewHistogramVec(prom.HistogramOpts{ | 	promShipperQueued = promauto.NewGaugeVec(prom.GaugeOpts{ | ||||||
| 		Subsystem: "shipper", | 		Subsystem: "shipper", | ||||||
| 		Name:      "queued", | 		Name:      "queued", | ||||||
| 		Help:      "Items in queue to be batched and sent to mongo", | 		Help:      "Log lines in queue to be batched and sent to mongo", | ||||||
| 	}, []string{"filename"}) | 	}, []string{"filename"}) | ||||||
| 	promShipperSynced = promauto.NewGaugeVec(prom.GaugeOpts{ | 	promShipperSynced = promauto.NewGaugeVec(prom.GaugeOpts{ | ||||||
| 		Subsystem: "shipper", | 		Subsystem: "shipper", | ||||||
| @@ -80,7 +80,7 @@ func (s *submitter) sender(name string, sendQueue <-chan mLog) { | |||||||
| 		go func() { | 		go func() { | ||||||
| 			baseName := filepath.Base(name) | 			baseName := filepath.Base(name) | ||||||
| 			for { | 			for { | ||||||
| 				promShipperQueueItems.WithLabelValues(baseName).Observe(float64( | 				promShipperQueued.WithLabelValues(baseName).Set(float64( | ||||||
| 					len(sendQueue))) | 					len(sendQueue))) | ||||||
|  |  | ||||||
| 				timer := time.NewTimer(time.Second) | 				timer := time.NewTimer(time.Second) | ||||||
|   | |||||||
| @@ -25,7 +25,7 @@ var ( | |||||||
| 	promCatchupDone = promauto.NewGaugeVec(prom.GaugeOpts{ | 	promCatchupDone = promauto.NewGaugeVec(prom.GaugeOpts{ | ||||||
| 		Subsystem: "file", | 		Subsystem: "file", | ||||||
| 		Name:      "catchupped", | 		Name:      "catchupped", | ||||||
| 		Help:      "File count where backlog has been sent; <= watcher_file_count", | 		Help:      "Files where initial backlog has been sent; (total <= watcher_file_count)", | ||||||
| 	}, []string{"filename"}) // TODO: rm filename? | 	}, []string{"filename"}) // TODO: rm filename? | ||||||
| 	promFileErr = promauto.NewCounterVec(prom.CounterOpts{ | 	promFileErr = promauto.NewCounterVec(prom.CounterOpts{ | ||||||
| 		Subsystem: "file", | 		Subsystem: "file", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user