Getting appmetrics to send data to (Eclips) IBM Health centre
<p>Decided to set up appmetrics to monitor my app, but got stuck on getting Eclipse Health centre to, and I can't find any instructions (that I can understand).</p>

<p>Got a mosquito MTQQ broker installed (localhost port 1883)</p>

<p>Set up the appmetric (as a config file) </p>

<pre><code>var appmetrics = require('appmetrics')


module.exports = {
    crMonitor: function(){
        var monitoring = appmetrics.monitor();
        monitoring.on('mqtt', function(data){
            console.log("MTQQ event at " + data.time+ " type " +data.method + " topic: " + data.topic)
        })
        monitoring.enable('socketio');
        monitoring.enable('eventloop');
        monitoring.enable('http');
        /*monitoring.on('initialized', function (env) {
            env = monitoring.getEnvironment();
            for (var entry in env) {
                console.log(entry + ':' + env[entry]);
            };
        });*/
        return monitoring;
    }

}
</code></pre>

<p>And when I start the application I get the following three lines:</p>

<ul>
<li>[Mon Mar 14 15:20:13 2016] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 1.0.7.201602110606 (Agent Core 3.0.6.201511030958) </li>
<li>[Mon Mar 14 15:20:13 2016] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker localhost:1883 </li>
<li>[Mon Mar 14 15:20:14 2016] com.ibm.diagnostics.healthcenter.mqtt INFO: Connected to broker localhost:1883</li>
</ul>

<p>So they are talking. But now comes how to set up Health Centre. Tried without manual, no luck, can start it, but can't find any way to configure source.</p>

<p>I then found this
<a href="https://www.ibm.com/support/knowledgecenter/SS3KLZ/com.ibm.java.diagnostics.healthcenter.doc/topics/configuringagent.html" rel="nofollow">https://www.ibm.com/support/knowledgecenter/SS3KLZ/com.ibm.java.diagnostics.healthcenter.doc/topics/configuringagent.html</a></p>

<p>But I can't make heads or toes of what I am suppose to do. I tried setting the environment (launchctl setenv IBM_JAVA_OPTIONS "-Xhealthcenter:port=1883") but as far as I can tell, eclipse healthcenter does not even attempt to gather information via MTQQ. </p>

<p>Any suggestions. </p>