I&#39;m playing  with the amqp output plugin, wihch uses util_format_json.c for putting the values in the wire.<div><br></div><div>However, for multi-valued samples the name each value, as well as the type (COUNTER, GUAGE etc) are missing.</div>

<div>For example, for load average the json looks like this:</div><div><div>[</div><div>  {&quot;values&quot;:[0.0561523,0.188477,0.276855],</div><div>   &quot;time&quot;:1268776516,</div><div>   &quot;interval&quot;:10,</div>

<div>   &quot;host&quot;:&quot;<a href="http://host.domain.com">host.domain.com</a>&quot;,</div><div>   &quot;plugin&quot;:&quot;load&quot;,</div><div>   &quot;plugin_instance&quot;:&quot;&quot;,</div><div>   &quot;type&quot;:&quot;load&quot;,</div>

<div>   &quot;type_instance&quot;:&quot;&quot;}</div><div>]</div></div><div><br></div><div>The three values are named &#39;shortterm&#39;, &#39;midterm&#39; and &#39;longterm&#39; and are all of type GUAGE.</div><div><br>

</div><div>For systems that are &quot;far away&quot; from collectd without access to the types database, it would be nice to have this info.</div><div><br></div><div>May I suggest a format for the JSON to incorporate this data.</div>

<div>Again, using load as an example:</div><div><div>[</div><div>  {&quot;values&quot;:{&quot;shortterm:GUAGE&quot;:0.0561523, &quot;midterm:GUAGE&quot;:0.188477, &quot;longterm:GUAGE&quot;:0.276855},</div><div>   &quot;time&quot;:1268776516,</div>

<div>   &quot;interval&quot;:10,</div><div>   &quot;host&quot;:&quot;<a href="http://host.domain.com">host.domain.com</a>&quot;,</div><div>   &quot;plugin&quot;:&quot;load&quot;,</div><div>   &quot;plugin_instance&quot;:&quot;&quot;,</div>

<div>   &quot;type&quot;:&quot;load&quot;,</div><div>   &quot;type_instance&quot;:&quot;&quot;}</div><div>]</div></div><div><br></div><div>Basically changing &quot;values&quot; from an array to a hash, keyed by a &quot;name:type&quot;. </div>

<div><br></div><div>Thoughts?</div><div><br></div><div>- Bob</div>