Skip to content

Commit

Permalink
v0.3.1
Browse files Browse the repository at this point in the history
* fix some collector definition bug under corner cases
* fix version string to `pg_exporter`
  • Loading branch information
Vonng committed Dec 4, 2020
1 parent 03d9f1f commit 735d381
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Latest binaries & rpms can be found on [release](https://github.com/Vonng/pg_exporter/releases) page. Supported pg version: PostgreSQL 9.4+ & Pgbouncer 1.8+. Default collectors definition is compatible with PostgreSQL 10,11,12,13.

Latest `pg_exporter` version: `0.3.0`
Latest `pg_exporter` version: `0.3.1`



Expand Down
6 changes: 3 additions & 3 deletions pg_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ┃ //
Expand Down Expand Up @@ -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"

Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 735d381

Please sign in to comment.