Hello, <br><br>I'm a new Cougaar developper.<br><br>I want to know if the metric service can bring me informations about the computer in general.<br> For example, I need the CPU usage of the computer in general (not only the CPU usage of an agent or a node, or the jvm).
<br><br>Then, the feature must run on Windows XP.<br> And I get "WARN
[DirectSysStatSupplier] - No handler for CPU on platform Windows XP",
which makes me think it won't work on Windows.<br><br>That's why I want to add new metrics, based on native calls.
<br>So I read the documentation at "<a href="http://cougaar.cougaar.org/software/12.2/OnlineManual/MetricsService/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://cougaar.cougaar.org/software/12.2/OnlineManual/MetricsService/
</a>", in particular the section "Add New Metric".
<br>I look at an exemple of sensor plugin : "org.cougaar.core.thread.AgentLoadSensorPlugin". <br><div id="mb_0">But
this sensor get it's values suscribing to the metric service, and there
is no metric which can answer my need : Get the global CPU usage on Windows plateform.<br><br>Finaly, I look at the "Use Cases and Examples", in particular
the "Example Metrics Writer", in order to be able to add my own key.<br>When
I add a new key, like the "Example Metrics Writer" do with the
"Current_Time_Millis" key ; I can't get the value after, because I
don't know the path.
<br>For example, I manage to modify an existing key, like "Host_[Host
IP]_CPU_Jips", and get my funny value after because I know the path is
"Host([Host IP]):Jips".<br>So where can I do the mapping between key
and path ? Because the example shows how can I put a key, but not how
can I put the path.
<br><br>-- <br>Guillaume Liégard<br><br></div>