From 801ac76eef298425a0d319ec5185900157b52a4c Mon Sep 17 00:00:00 2001 From: rasmus Date: Wed, 9 Nov 2022 19:52:02 +0200 Subject: [PATCH] comments --- pkg/file/metrics.go | 2 +- pkg/mongo/mongo_struct.go | 2 +- pkg/sender/metrics.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/file/metrics.go b/pkg/file/metrics.go index 33fc9df..611343b 100644 --- a/pkg/file/metrics.go +++ b/pkg/file/metrics.go @@ -18,7 +18,7 @@ var ( Subsystem: "file", Name: "catchupped", Help: "(0 or) 1 if initial backlog has been sent; (total <= watcher_file_count)", - }, []string{"filename"}) // TODO: rm filename? + }, []string{"filename"}) promFileErr = promauto.NewCounterVec(prometheus.CounterOpts{ Namespace: globals.PrometheusPrefix, Subsystem: "file", diff --git a/pkg/mongo/mongo_struct.go b/pkg/mongo/mongo_struct.go index 14c5623..d011613 100644 --- a/pkg/mongo/mongo_struct.go +++ b/pkg/mongo/mongo_struct.go @@ -29,7 +29,7 @@ type ( String string ParsedMetadata - ParsedContent // TODO: not implemented + ParsedContent // TODO: ECS // added by ToBson() timeShip time.Time diff --git a/pkg/sender/metrics.go b/pkg/sender/metrics.go index 91db2a8..e664a53 100644 --- a/pkg/sender/metrics.go +++ b/pkg/sender/metrics.go @@ -29,8 +29,8 @@ var ( promShipperDbSendError = promauto.NewCounterVec(prometheus.CounterOpts{ Namespace: globals.PrometheusPrefix, // Subsystem: "shipper", - Name: "insertion_error", // "errors", - Help: "Errors while submitting to database", // TODO: + Name: "insertion_error", // "errors", + Help: "Failed database bulk insertions", }, []string{"filename"}) promShipperSynced = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: globals.PrometheusPrefix,