Skip to content

Commit

Permalink
Setup new version info for p4_prom_build_info
Browse files Browse the repository at this point in the history
  • Loading branch information
rcowham committed Jun 6, 2024
1 parent 53b3ddd commit c36ba7f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.work.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
7 changes: 6 additions & 1 deletion p4prom.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c36ba7f

Please sign in to comment.