I am working on a project to manage custom attributes in the queue arguments table and found that if I write to the rabbit_queue table it will reflect in the management plugin as I want, without interrupting existing publishers or consumers.<div>
<br></div><div>It seems like it does exactly what I want it to do, which is very cool but I can't help but wonder if it's a bad idea though. </div><div><br></div><div>Would someone with a good handle on RabbitMQ internals mind taking a look at my code and let me know if I have anything to worry about?</div>
<div><br></div><div>All write related functions use the write_record/1 function:</div><div><br></div><div><a href="https://github.com/gmr/elmer/blob/master/elmer.erl#L98">https://github.com/gmr/elmer/blob/master/elmer.erl#L98</a></div>
<div><br></div><div>And examples of use can be found in setup_monitoring/4 at:</div><div><br></div><div><a href="https://github.com/gmr/elmer/blob/master/elmer.erl#L27">https://github.com/gmr/elmer/blob/master/elmer.erl#L27</a></div>
<div><br></div><div>And toggle_monitoring/2 at:</div><div><br></div><div><a href="https://github.com/gmr/elmer/blob/master/elmer.erl#L46">https://github.com/gmr/elmer/blob/master/elmer.erl#L46</a></div><div><br></div><div>
I'm currently working on a cli wrapper for these and plan on releasing this and the accompanying Nagios integration bits if this is sane enough.</div><div><br></div><div>Thanks,</div><div><br>Gavin </div>