jmxtrans icon indicating copy to clipboard operation
jmxtrans copied to clipboard

InfluxDBWriter : Add "attributesAsTag" parameter

Open nlaurent9816 opened this issue 7 years ago • 1 comments

In InfluxDB, you can store values as tag or as fields. Tags are indexed but can only be Strings, fields are not indexed but suuports more data formats. (See here.) Actually, the InfluxDbWriter stores every attributes value (results from queries) as fields. If this format is adapted for metrics (counters, averages, etc...), you can have performance issues when reading if you try to filter with them. Tags are more adapted for filtering, that's why it is recommended to store IDs, names, metadata, etc... as tags. Actually, only JMX port (with reportJmxPortAsTag parameter), typeName, objDomain, className, attributeName (with resultTags parameter) and full custom tags are written. "attributesAsTag" is a list of attributes to write as tags instead of fields.

I also have a question: How can I also edit the Wiki pages in order to document features?

nlaurent9816 avatar Jul 05 '18 11:07 nlaurent9816

2 months after, anybody wants to check this PR?

nlaurent9816 avatar Sep 14 '18 07:09 nlaurent9816