I am working with collectd and influxdb.
collectd v5.5 allows memory and cpu values to be reported in percentages. However, all the percentage values are being written into a measurement called "percent_values". The measurements have the tag type_instance and it has tag values from memory (used, cache...) and tags from cpu (idle, user, irq).
====================================================================== Measurement: percent_value
Tags: type_instance=[cache, free, used, buffered, idle, nice, softirq, steal, system, user...]
Fields: value ======================================================================
Why are all the values all written into a single measurement instead of having 2 separate measurements? Would the following make more sense or have better performance?
======================================================================
Measurement: mem_percent_value
Tags: type_instance=[cache, free, used, buffered]
Fields: value
Measurement: cpu_percent_value
Tags: type_instance=[idle, nice, softirq, steal, system, user...]
Fields: value ======================================================================
In terms of schema design which have good performance, is it better to have a single measurement with many tag values or multiple measurements with only tag values belonging to the measurement. I will be designing some new measurements, should I also store them in a single measurement with all the tag values, or separate them?