Skip to content

Commit

Permalink
update: update all libraries versions and make some fixes in deprecat…
Browse files Browse the repository at this point in the history
…ed functions
  • Loading branch information
luiscovelo authored and mauricioabreu committed Apr 23, 2024
1 parent 0d6676b commit 82c00af
Show file tree
Hide file tree
Showing 788 changed files with 253,724 additions and 34,253 deletions.
36 changes: 17 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,25 @@ module github.com/mauricioabreu/nginx_rtmp_prometheus
go 1.21

require (
github.com/antchfx/xmlquery v1.2.3
github.com/go-kit/kit v0.10.0
github.com/prometheus/client_golang v1.5.1
github.com/prometheus/common v0.9.1
gopkg.in/alecthomas/kingpin.v2 v2.2.6
github.com/alecthomas/kingpin/v2 v2.4.0
github.com/antchfx/xmlquery v1.4.0
github.com/go-kit/log v0.2.1
github.com/prometheus/client_golang v1.19.0
github.com/prometheus/common v0.53.0
)

require (
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4 // indirect
github.com/antchfx/xpath v1.1.5 // indirect
github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9 // indirect
github.com/antchfx/xpath v1.3.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/go-logfmt/logfmt v0.5.0 // indirect
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
github.com/golang/protobuf v1.3.2 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/pkg/errors v0.8.1 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/procfs v0.0.8 // indirect
golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7 // indirect
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82 // indirect
golang.org/x/text v0.3.2 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/procfs v0.14.0 // indirect
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect
golang.org/x/net v0.24.0 // indirect
golang.org/x/sys v0.19.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect
)
429 changes: 62 additions & 367 deletions go.sum

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions nginx_rtmp_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ import (
"sync"
"time"

"github.com/alecthomas/kingpin/v2"
"github.com/antchfx/xmlquery"
"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/promlog"
"github.com/prometheus/common/promlog/flag"
"github.com/prometheus/common/version"
"gopkg.in/alecthomas/kingpin.v2"
)

const (
Expand Down Expand Up @@ -316,11 +317,11 @@ func main() {
os.Exit(1)
}
prometheus.MustRegister(exporter)
prometheus.MustRegister(version.NewCollector("nginx_rtmp_exporter"))
prometheus.MustRegister(collectors.NewBuildInfoCollector())

level.Info(logger).Log("msg", "PID File:", pidFile)
if *pidFile != "" {
procExporter := prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{
procExporter := collectors.NewProcessCollector(collectors.ProcessCollectorOpts{
PidFn: func() (int, error) {
content, err := os.ReadFile(*pidFile)
if err != nil {
Expand Down
14 changes: 14 additions & 0 deletions vendor/github.com/alecthomas/kingpin/v2/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 82c00af

Please sign in to comment.