Hi, Today I did: * Register a CpuUsageGaugeSet with MetricManager * I'm still working on MetricsFilterTest.java. * I added CpuUsageGaugeSet on attachments of Result.java and I tried to read on MetricsFilter
Questions: 1) CpuUsageGaugeSet.java has a constructor that receives a file path (on Linux is "/proc/stat"). I need that MetricsFilter collects CpuUsageGaugeSet from invoker's response: I added a JSON on attachments (is a String). On MetricsFilter gson.fromJson(json, CpuUsageGaugeSet.class) throws: "Unable to invoke no-args constructor for interface com.alibaba.metrics.Metric. Registering an InstanceCreator with Gson for this type may fix this problem." Can anyone help on the right way to write and read CpuUsageGaugeSet on attachments? Thanks, -- Daniela Morais Computer Science student at University Of Campinas danielammorais.com <http://www.danielammorais.com>
