diff --git a/go.mod b/go.mod index 8f3afc3..c63a7a4 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/perforce/p4prometheus go 1.18 require ( - github.com/rcowham/go-libp4dlog v0.12.8 + github.com/rcowham/go-libp4dlog v0.12.9 github.com/rcowham/go-libtail v0.1.3 github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.9.0 diff --git a/go.work.sum b/go.work.sum index 671c6c7..6a238de 100644 --- a/go.work.sum +++ b/go.work.sum @@ -149,8 +149,8 @@ github.com/posener/complete v1.1.1 h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5 github.com/prometheus/client_golang v1.7.1 h1:NTGy1Ja9pByO+xAeH/qiWnLrKtr3hJPNjaVUwnjpdpA= github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= github.com/prometheus/procfs v0.1.3 h1:F0+tqvhOksq22sc6iCHF5WGlWjdwj92p0udFh1VFBS8= -github.com/rcowham/go-libp4dlog v0.12.8 h1:grjAqXTiUOArVICXuGDoX8YrwAww7REB8rkEcQUbmH4= -github.com/rcowham/go-libp4dlog v0.12.8/go.mod h1:LUq4ZRlPyyW1ugzIaYPPomGVM1XqmETPPPcGmQjoWX0= +github.com/rcowham/go-libp4dlog v0.12.9 h1:DFHtzusCdmkoe1H6AXcUHlScJlLryuRV+hQkzs78vms= +github.com/rcowham/go-libp4dlog v0.12.9/go.mod h1:LUq4ZRlPyyW1ugzIaYPPomGVM1XqmETPPPcGmQjoWX0= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a h1:9ZKAASQSHhDYGoxY8uLVpewe1GDZ2vu2Tr/vTdVAkFQ= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af h1:gu+uRPtBe88sKxUCEXRoeCvVG90TJmwhiqRpvdhQFng= github.com/rogpeppe/go-internal v1.3.0 h1:RR9dF3JtopPvtkroDZuVD7qquD0bnHlKSqaQhgwt8yk= diff --git a/p4prom.go b/p4prom.go index 6c681dd..b182b1f 100644 --- a/p4prom.go +++ b/p4prom.go @@ -149,7 +149,12 @@ func runLogTailer(logger *logrus.Logger, logcfg *logConfig, cfg *config.Config, CaseSensitiveServer: cfg.CaseSensitiveServer, } logger.Infof("P4Prometheus config: %+v", mcfg) - mp := metrics.NewP4DMetricsLogParser(mcfg, logger, false) + version := &metrics.P4DMetricsVersion{ + Version: version.Version, + GoVersion: version.GoVersion, + Revision: version.Revision, + } + mp := metrics.NewP4DMetricsLogParser(mcfg, version, logger, false) linesChan := make(chan string, 10000) _, metricsChan := mp.ProcessEvents(ctx, linesChan, false)