Skip to content

Commit af0f7b8

Browse files
authored
Merge pull request #3 from sysdiglabs/master
Master
2 parents b1f52c2 + 57719ba commit af0f7b8

File tree

5 files changed

+413
-162
lines changed

5 files changed

+413
-162
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.10.0 / 2021-07-08
2+
3+
* [ENHANCEMENT] Add ability to set included databases when autoDiscoverDatabases is enabled #499
4+
* [BUGFIX] fix pg_replication_slots on postgresql versions 9.4 <> 10.0 #537
5+
16
## 0.9.0 / 2021-03-01
27

38
First release under the Prometheus Community organisation.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.9.0
1+
0.10.0

cmd/postgres_exporter/util.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,10 @@ func parseFingerprint(url string) (string, error) {
184184
if len(splitted) != 2 {
185185
return "", fmt.Errorf("malformed dsn %q", dsn)
186186
}
187-
kv[splitted[0]] = splitted[1]
187+
// Newer versions of pq.ParseURL quote values so trim them off if they exist
188+
key := strings.Trim(splitted[0], "'\"")
189+
value := strings.Trim(splitted[1], "'\"")
190+
kv[key] = value
188191
}
189192

190193
var fingerprint string

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ go 1.14
44

55
require (
66
github.com/blang/semver v3.5.1+incompatible
7-
github.com/go-kit/kit v0.10.0
8-
github.com/lib/pq v1.9.0
9-
github.com/prometheus/client_golang v1.9.0
7+
github.com/go-kit/kit v0.11.0
8+
github.com/lib/pq v1.10.1
9+
github.com/prometheus/client_golang v1.11.0
1010
github.com/prometheus/client_model v0.2.0
11-
github.com/prometheus/common v0.17.0
12-
github.com/prometheus/exporter-toolkit v0.5.1
11+
github.com/prometheus/common v0.29.0
12+
github.com/prometheus/exporter-toolkit v0.6.0
1313
gopkg.in/alecthomas/kingpin.v2 v2.2.6
1414
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
1515
gopkg.in/yaml.v2 v2.4.0

0 commit comments

Comments
 (0)