-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix some collector definition bug under corner cases * fix version string to `pg_exporter`
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
// ┃ Desc : pg_exporter metrics exporter ┃ // | ||
// ┃ Ctime : 2019-12-09 ┃ // | ||
// ┃ Mtime : 2020-10-20 ┃ // | ||
// ┃ Version : 0.3.0 ┃ // | ||
// ┃ Version : 0.3.1 ┃ // | ||
// ┃ Support : PostgreSQL 10~13 pgbouncer 1.9+ ┃ // | ||
// ┃ Author : Vonng ([email protected]) ┃ // | ||
// ┃ Copyright (C) 2019-2020 Ruohang Feng ┃ // | ||
|
@@ -48,7 +48,7 @@ import ( | |
\**********************************************************************************************/ | ||
|
||
// Version is read by make build procedure | ||
var Version = "0.3.0" | ||
var Version = "0.3.1" | ||
|
||
var defaultPGURL = "postgresql:///?sslmode=disable" | ||
|
||
|
@@ -1968,7 +1968,7 @@ func Reload() error { | |
|
||
// parse parameters & retrieve dsn | ||
func ParseArgs() { | ||
kingpin.Version(fmt.Sprintf("postgres_exporter %s (built with %s)\n", Version, runtime.Version())) | ||
kingpin.Version(fmt.Sprintf("pg_exporter %s (built with %s)\n", Version, runtime.Version())) | ||
log.AddFlags(kingpin.CommandLine) | ||
kingpin.Parse() | ||
log.Debugf("init pg_exporter, configPath=%v constLabels=%v, disableCache=%v, autoDiscovery=%v, excludeDatabase=%v listenAdress=%v metricPath=%v", | ||
|