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

Default tags #35

Closed
bednar opened this issue Jun 21, 2019 · 0 comments · Fixed by #39
Closed

Default tags #35

bednar opened this issue Jun 21, 2019 · 0 comments · Fixed by #39
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@bednar
Copy link
Contributor

bednar commented Jun 21, 2019

Sometimes is useful to store same information in every measurement e.g. hostname, location, customer:

The Java client will be able to use static value, system property or env property as a tag value.

Configuration
influx2.tags.id = 132-987-655
influx2.tags.customer = California Miner
influx2.tags.hostname = ${env.hostname}
influx2.tags.sensor-version = ${version}

=>

mine-sensor,id=132-987-655,customer="California Miner",hostname=example.com,sensor-version=v1.00 altitude=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant