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
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
=>