-
Notifications
You must be signed in to change notification settings - Fork 5.8k
PostgreSQL address default value "local" instead of "localhost" #4872
Copy link
Copy link
Closed
Labels
area/postgresqlbreaking changeImprovement to Telegraf that requires changes to the plugin or agent; for minor/major releasesImprovement to Telegraf that requires changes to the plugin or agent; for minor/major releasesfeature requestRequests for new plugin and for new features to existing pluginsRequests for new plugin and for new features to existing pluginsplugin/input1. Request for new input plugins 2. Issues/PRs that are related to input plugins1. Request for new input plugins 2. Issues/PRs that are related to input plugins
Metadata
Metadata
Assignees
Labels
area/postgresqlbreaking changeImprovement to Telegraf that requires changes to the plugin or agent; for minor/major releasesImprovement to Telegraf that requires changes to the plugin or agent; for minor/major releasesfeature requestRequests for new plugin and for new features to existing pluginsRequests for new plugin and for new features to existing pluginsplugin/input1. Request for new input plugins 2. Issues/PRs that are related to input plugins1. Request for new input plugins 2. Issues/PRs that are related to input plugins
Relevant telegraf.conf:
System info:
36193aea10.5-0ubuntu0.18.04Steps to reproduce:
addressintelegraf.conffor that DBExpected behavior:
Actual behavior:
localhostand disables SSLAdditional info:
This issue is a fairly low priority, but it got me stumped when playing around with telegraf. On my development box I don't need TCP connections to PostgreSQL and never enabled it. All my apps run locally using a unix-domain socket. This is the default config of PostgreSQL. All other PG clients I know of (including
psql) will connect using the Unix domain socket when no DSN is specified.I would expect telegraf to behave like any other PG client in it's default config.
Right now the DSN is hardcoded to
localhostif an empty address is specified.