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

Commit 9ede782

Browse files
(SUP-2779) Fix the bug - telegraf postgres metrics unable to obtain data
Before this commit, the connection request from telegraf to PostgreSQL is not able to be authenticated due to SSL connection issue. With this commit, now the authentication is successful and the Telegraf Postgre Metrics can get data to display.
1 parent df6a0f2 commit 9ede782

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)