<div dir="ltr">Hi, I am writing a new plugin for collectd, in my config, I want to add some predefined common labels like the following, however, it seems the config parser for collectd does not support back slash. I also tried to quote the key value but the parser doesn't like quote either, is it required for oconfig_item_t.key to contain only letter and digit? Is there a workaround to this problem? thanks a lot.<div>
<br><div><br></div><div><div><Plugin "write_monarch"></div><div> <Label><br></div><div> <a href="http://www.example.com/location">www.example.com/location</a> "us-central1-a"</div><div>
<a href="http://www.example.com/resource_id">www.example.com/resource_id</a> "123456789"</div><div> <a href="http://www.example.com/resource_type">www.example.com/resource_type</a> "instance"</div>
<div> </Label><br></div></div><div></Plugin><br></div><div><br></div><div><br></div><div><div>Parse error in file `/opt/collectd/etc/collectd.conf', line 9 near `/': syntax error, unexpected SLASH</div>
<div>yyparse returned error #1</div><div>configfile: Cannot read file `/opt/collectd/etc/collectd.conf'.</div><div>Unable to read config file /opt/collectd/etc/collectd.conf.</div><div>Error: Reading the config file failed!</div>
<div>Read the syslog for details.</div><div>..</div></div><div><br></div></div></div>