Skip to content

Postgresql database blacklist configuration option#1699

Merged
sparrc merged 21 commits intoinfluxdata:masterfrom
Instrumental:postgresql-blacklist
Sep 7, 2016
Merged

Postgresql database blacklist configuration option#1699
sparrc merged 21 commits intoinfluxdata:masterfrom
Instrumental:postgresql-blacklist

Conversation

@mediocretes
Copy link
Contributor

@mediocretes mediocretes commented Sep 1, 2016

Basically every postgres includes the postgres, template0, and template1 database. The stats for these are usually very boring, and being able to filter them out without knowing the name of all the databases on the server up front would be great. This change adds "ignored_databases", a list of databases to ignore. Any databases not in the list will get full stats as usual.

Required for all PRs:

  • CHANGELOG.md updated (we recommend not updating this until the PR has been approved by a maintainer)
  • Sign CLA (if not already signed)
  • [N/A] README.md updated (if adding a new plugin)

janxious and others added 17 commits June 23, 2016 16:46
…end of write cycle so we don't hold open idle connections, which has the benefit of mostly removing the chance of getting hopelessly connection lost
correct URL from instrumental fork to origin and put the change in the correct part of the file
…able easy filtering of system databases without needing to whitelist all the databases on the server. Add tests for database whitelist and blacklist.
@sparrc
Copy link
Contributor

sparrc commented Sep 6, 2016

this looks good to me, thanks @mediocretes, please put your change in the changelog under 1.1 and I will merge

@mediocretes
Copy link
Contributor Author

@sparrc I have added this PR to the changelog

@sparrc sparrc merged commit e7899d4 into influxdata:master Sep 7, 2016
jackzampolin pushed a commit that referenced this pull request Oct 7, 2016
* separate hello and authenticate functions, force connection close at end of write cycle so we don't hold open idle connections, which has the benefit of mostly removing the chance of getting hopelessly connection lost

* update changelog, though this will need to be updated again to merge into telegraf master

* bump instrumental agent version

* fix test to deal with better better connect/reconnect logic and changed ident & auth handshake

* Update CHANGELOG.md

correct URL from instrumental fork to origin and put the change in the correct part of the file

* go fmt

* Split out Instrumental tests for invalid metric and value.

* Ensure nothing remains on the wire after final test.

* Force valid metric names by replacing invalid parts with underscores.

* Multiple invalid characters being joined into a single udnerscore.

* Adjust comment to what happens.

* undo split hello and auth commands, to reduce roundtrips

* Add ignored_databases option to postgresql configuration files, to enable easy filtering of system databases without needing to whitelist all the databases on the server.  Add tests for database whitelist and blacklist.

* run go fmt on new postgresql database whitelist/blacklist code

* add postgresql database blacklist option to changelog

* remove a bad merge from the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants