You've already forked nginx_exporter
mirror of
https://github.com/nginxinc/nginx-prometheus-exporter.git
synced 2025-08-08 05:02:04 +03:00
Bump github.com/prometheus/common from 0.48.0 to 0.53.0 (#697)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.48.0 to 0.53.0. - [Release notes](https://github.com/prometheus/common/releases) - [Commits](https://github.com/prometheus/common/compare/v0.48.0...v0.53.0) --- updated-dependencies: - dependency-name: github.com/prometheus/common dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Paul Abel <128620221+pdabelf5@users.noreply.github.com>
This commit is contained in:
13
exporter.go
13
exporter.go
@@ -23,10 +23,11 @@ import (
|
||||
"github.com/go-kit/log"
|
||||
"github.com/go-kit/log/level"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/collectors/version"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
"github.com/prometheus/common/promlog"
|
||||
"github.com/prometheus/common/promlog/flag"
|
||||
"github.com/prometheus/common/version"
|
||||
common_version "github.com/prometheus/common/version"
|
||||
|
||||
"github.com/prometheus/exporter-toolkit/web"
|
||||
"github.com/prometheus/exporter-toolkit/web/kingpinflag"
|
||||
@@ -112,7 +113,7 @@ func main() {
|
||||
promlogConfig := &promlog.Config{}
|
||||
|
||||
flag.AddFlags(kingpin.CommandLine, promlogConfig)
|
||||
kingpin.Version(version.Print(exporterName))
|
||||
kingpin.Version(common_version.Print(exporterName))
|
||||
kingpin.HelpFlag.Short('h')
|
||||
|
||||
addMissingEnvironmentFlags(kingpin.CommandLine)
|
||||
@@ -120,8 +121,8 @@ func main() {
|
||||
kingpin.Parse()
|
||||
logger := promlog.New(promlogConfig)
|
||||
|
||||
level.Info(logger).Log("msg", "Starting nginx-prometheus-exporter", "version", version.Info())
|
||||
level.Info(logger).Log("msg", "Build context", "build_context", version.BuildContext())
|
||||
level.Info(logger).Log("msg", "Starting nginx-prometheus-exporter", "version", common_version.Info())
|
||||
level.Info(logger).Log("msg", "Build context", "build_context", common_version.BuildContext())
|
||||
|
||||
prometheus.MustRegister(version.NewCollector(exporterName))
|
||||
|
||||
@@ -179,7 +180,7 @@ func main() {
|
||||
Name: "NGINX Prometheus Exporter",
|
||||
Description: "Prometheus Exporter for NGINX and NGINX Plus",
|
||||
HeaderColor: "#039900",
|
||||
Version: version.Info(),
|
||||
Version: common_version.Info(),
|
||||
Links: []web.LandingLinks{
|
||||
{
|
||||
Address: *metricsPath,
|
||||
@@ -236,7 +237,7 @@ func registerCollector(logger log.Logger, transport *http.Transport,
|
||||
addr = "http://unix" + requestPath
|
||||
}
|
||||
|
||||
userAgent := fmt.Sprintf("NGINX-Prometheus-Exporter/v%v", version.Version)
|
||||
userAgent := fmt.Sprintf("NGINX-Prometheus-Exporter/v%v", common_version.Version)
|
||||
|
||||
httpClient := &http.Client{
|
||||
Timeout: *timeout,
|
||||
|
Reference in New Issue
Block a user