Skip to content

Default tags #35

Closed
Closed
@bednar

Description

@bednar

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions