Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit e1a7576

Browse files
authored
Merge pull request #200 from henrywangpuppet/SUP-2779
(SUP-2779) Fix the bug - telegraf postgres metrics unable to obtain data
2 parents df6a0f2 + 9ede782 commit e1a7576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/profile/master/postgres.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
plugin_type => 'postgresql_extensible',
3535
options => [{
3636
'interval' => $query_interval,
37-
'address' => "postgres://telegraf@${postgres_host}:${port}/pe-puppetdb?sslmode=require&sslkey=/etc/telegraf/${trusted['certname']}_key.pem&sslcert=/etc/telegraf/${trusted['certname']}_cert.pem&sslrootcert=/etc/telegraf/ca.pem", #lint:ignore:140chars
37+
'address' => "postgres://telegraf@${postgres_host}:${port}/pe-puppetdb?sslmode=verify-full&sslkey=/etc/telegraf/${trusted['certname']}_key.pem&sslcert=/etc/telegraf/${trusted['certname']}_cert.pem&sslrootcert=/etc/telegraf/ca.pem", #lint:ignore:140chars
3838
'outputaddress' => $postgres_host,
3939
'databases' => $databases,
4040
'query' => [{

0 commit comments

Comments
 (0)