You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/postgres_exporter/postgres_exporter.go
+5-24
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,6 @@ import (
24
24
"net/url"
25
25
"os"
26
26
"regexp"
27
-
"runtime"
28
27
"strconv"
29
28
"strings"
30
29
"sync"
@@ -45,22 +44,6 @@ import (
45
44
"gopkg.in/yaml.v2"
46
45
)
47
46
48
-
// Branch is set during build to the git branch.
49
-
varBranchstring
50
-
51
-
// BuildDate is set during build to the ISO-8601 date and time.
52
-
varBuildDatestring
53
-
54
-
// Revision is set during build to the git commit revision.
55
-
varRevisionstring
56
-
57
-
// Version is set during build to the git describe version
58
-
// (semantic version)-(commitish) form.
59
-
varVersion="0.0.1-rev"
60
-
61
-
// VersionShort is set during build to the semantic version.
62
-
varVersionShort="0.0.1"
63
-
64
47
var (
65
48
listenAddress=kingpin.Flag("web.listen-address", "Address to listen on for web interface and telemetry.").Default(":9187").Envar("PG_EXPORTER_WEB_LISTEN_ADDRESS").String()
66
49
webConfig=webflag.AddFlags(kingpin.CommandLine)
@@ -82,6 +65,8 @@ const (
82
65
namespace="pg"
83
66
// Subsystems.
84
67
exporter="exporter"
68
+
// The name of the exporter.
69
+
exporterName="postgres_exporter"
85
70
// Metric label used for static string data thats handy to send to Prometheus
0 commit comments