Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional postgres server/address tags #1026

Closed

Conversation

verterok
Copy link

Hi,

This PR adds an address_tag (boolean) option to the postgresql input, to configure if the server tag is created or not.
Default is current behavior where server tag is created.

My main usecase is to get cleaner graphite metric namespace. for example:
current ns: {prefix}.{host}.postgresql.dbname}.host=10_25_238_72_user=db_39_telegraf_dbname=telegraf.blks_read
with address_tag=false: {prefix}.storage-db-0.postgresql.{dbname}.blks_read

@sparrc
Copy link
Contributor

sparrc commented Apr 14, 2016

thanks for the contribution @verterok, but with PR #1017 we will have the ability to generically remove remove tags from all input/output plugins. So I'm going to close in favor of that.

@sparrc sparrc closed this Apr 14, 2016
@verterok
Copy link
Author

That's pretty cool and way more elegant than my approach.
thanks!

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.

2 participants