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-23Lines changed: 5 additions & 23 deletions
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"
@@ -40,22 +39,6 @@ import (
40
39
"gopkg.in/yaml.v2"
41
40
)
42
41
43
-
// Branch is set during build to the git branch.
44
-
varBranchstring
45
-
46
-
// BuildDate is set during build to the ISO-8601 date and time.
47
-
varBuildDatestring
48
-
49
-
// Revision is set during build to the git commit revision.
50
-
varRevisionstring
51
-
52
-
// Version is set during build to the git describe version
53
-
// (semantic version)-(commitish) form.
54
-
varVersion="0.0.1-rev"
55
-
56
-
// VersionShort is set during build to the semantic version.
57
-
varVersionShort="0.0.1"
58
-
59
42
var (
60
43
listenAddress=kingpin.Flag("web.listen-address", "Address to listen on for web interface and telemetry.").Default(":9187").Envar("PG_EXPORTER_WEB_LISTEN_ADDRESS").String()
61
44
metricPath=kingpin.Flag("web.telemetry-path", "Path under which to expose metrics.").Default("/metrics").Envar("PG_EXPORTER_WEB_TELEMETRY_PATH").String()
@@ -75,6 +58,8 @@ const (
75
58
namespace="pg"
76
59
// Subsystems.
77
60
exporter="exporter"
61
+
// The name of the exporter.
62
+
exporterName="postgres_exporter"
78
63
// Metric label used for static string data thats handy to send to Prometheus
0 commit comments