aboutsummaryrefslogtreecommitdiff
path: root/collector/textfile.go
diff options
context:
space:
mode:
Diffstat (limited to 'collector/textfile.go')
-rw-r--r--collector/textfile.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/collector/textfile.go b/collector/textfile.go
index 03a5e11..bc2ac43 100644
--- a/collector/textfile.go
+++ b/collector/textfile.go
@@ -22,7 +22,6 @@ import (
22 "path/filepath" 22 "path/filepath"
23 "sort" 23 "sort"
24 "strings" 24 "strings"
25 "sync"
26 "time" 25 "time"
27 26
28 "github.com/prometheus/client_golang/prometheus" 27 "github.com/prometheus/client_golang/prometheus"
@@ -34,7 +33,6 @@ import (
34 33
35var ( 34var (
36 textFileDirectory = kingpin.Flag("collector.textfile.directory", "Directory to read text files with metrics from.").Default("").String() 35 textFileDirectory = kingpin.Flag("collector.textfile.directory", "Directory to read text files with metrics from.").Default("").String()
37 textFileAddOnce sync.Once
38 mtimeDesc = prometheus.NewDesc( 36 mtimeDesc = prometheus.NewDesc(
39 "node_textfile_mtime_seconds", 37 "node_textfile_mtime_seconds",
40 "Unixtime mtime of textfiles successfully read.", 38 "Unixtime mtime of textfiles successfully read.",