nickbabcock/collectd-rust-plugin

Serde support for node values

Opened this issue · 0 comments

The real write_graphite plugin uses this configuration

<Plugin write_graphite>
       <Node "example">
               Host "localhost"
               Port "20030"
       </Node>
</Plugin>

Where the name it is registered under is "example". To use serde for automatic deserialization of config items, the following structure would be preferred:

<Plugin write_graphite>
       <Node>
               Name "example"
               Host "localhost"
               Port "20030"
       </Node>
</Plugin>

Ideally the former structure would be serde supported, but I am not going to worry too much if not.