Skip to content

Commit

Permalink
Merge pull request #3 from sysdiglabs/master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
Dlorite authored Aug 19, 2021
2 parents b1f52c2 + 57719ba commit af0f7b8
Show file tree
Hide file tree
Showing 5 changed files with 413 additions and 162 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.10.0 / 2021-07-08

* [ENHANCEMENT] Add ability to set included databases when autoDiscoverDatabases is enabled #499
* [BUGFIX] fix pg_replication_slots on postgresql versions 9.4 <> 10.0 #537

## 0.9.0 / 2021-03-01

First release under the Prometheus Community organisation.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.0
0.10.0
5 changes: 4 additions & 1 deletion cmd/postgres_exporter/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ func parseFingerprint(url string) (string, error) {
if len(splitted) != 2 {
return "", fmt.Errorf("malformed dsn %q", dsn)
}
kv[splitted[0]] = splitted[1]
// Newer versions of pq.ParseURL quote values so trim them off if they exist
key := strings.Trim(splitted[0], "'\"")
value := strings.Trim(splitted[1], "'\"")
kv[key] = value
}

var fingerprint string
Expand Down
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ go 1.14

require (
github.com/blang/semver v3.5.1+incompatible
github.com/go-kit/kit v0.10.0
github.com/lib/pq v1.9.0
github.com/prometheus/client_golang v1.9.0
github.com/go-kit/kit v0.11.0
github.com/lib/pq v1.10.1
github.com/prometheus/client_golang v1.11.0
github.com/prometheus/client_model v0.2.0
github.com/prometheus/common v0.17.0
github.com/prometheus/exporter-toolkit v0.5.1
github.com/prometheus/common v0.29.0
github.com/prometheus/exporter-toolkit v0.6.0
gopkg.in/alecthomas/kingpin.v2 v2.2.6
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
gopkg.in/yaml.v2 v2.4.0
Expand Down
Loading

0 comments on commit af0f7b8

Please sign in to comment.