prom: improve helptext

This commit is contained in:
rasmus 2022-11-06 16:56:12 +02:00
parent c93b41dcfe
commit b323e34ff2
2 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ var (
promShipperMongoSent = promauto.NewCounterVec(prom.CounterOpts{
Subsystem: "shipper",
Name: "sent",
Help: "Items successfully committed to mongo",
Help: "Log lines successfully committed to mongo",
}, []string{"filename"})
promShipperMongoSentError = promauto.NewCounterVec(prom.CounterOpts{
Subsystem: "shipper",
@ -27,10 +27,10 @@ var (
Name: "lines_parsing_errors",
Help: "Errors while parsing log line suffixes",
}, []string{"filename"})
promShipperQueueItems = promauto.NewHistogramVec(prom.HistogramOpts{
promShipperQueued = promauto.NewGaugeVec(prom.GaugeOpts{
Subsystem: "shipper",
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"})
promShipperSynced = promauto.NewGaugeVec(prom.GaugeOpts{
Subsystem: "shipper",
@ -80,7 +80,7 @@ func (s *submitter) sender(name string, sendQueue <-chan mLog) {
go func() {
baseName := filepath.Base(name)
for {
promShipperQueueItems.WithLabelValues(baseName).Observe(float64(
promShipperQueued.WithLabelValues(baseName).Set(float64(
len(sendQueue)))
timer := time.NewTimer(time.Second)

View File

@ -25,7 +25,7 @@ var (
promCatchupDone = promauto.NewGaugeVec(prom.GaugeOpts{
Subsystem: "file",
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?
promFileErr = promauto.NewCounterVec(prom.CounterOpts{
Subsystem: "file",