Hi, This mail is just to give an update of the work I did in last few weeks regarding Metrics.
Following are the features/improvements done in Metrics 1.1.0-SNAPSHOT [1] version. - Metrics UI by default now shows JVM Metrics. These charts are generated from JMX information, which reported from "metrics-jvm" component. See related discussion: "[Architecture] Metrics Visualization" [2]. - Metrics UI can be extended easily with an OSGi Fragment bundle. See related commit [3]. - Messaging Metrics UI is implemented for WSO2 Message Broker as an OSGi Fragment bundle. See PR [4]. - Metrics UI fetches data from the database. Queries are optimized for searching multiple metric names and attributes. See commit [5]. - Metrics feature is now enabled by default. See commit [6]. - Metrics UI support filtering data for a custom time range. I used jQuery UI Timepicker plugin to select date and time for the custom time range. See commit [7]. - Metrics Levels can now be changed dynamically via the JMX operation "setMetricLevel(String name, String level)". See commit [8]. This is just a basic implementation and in future, this must be improved to support updating the levels in metric hierarchy (by keeping metrics in a tree structure). - Metrics UI can automatically update charts. There is a button to toggle "Auto Update". See commit [9]. - For main Metric components [10], there are JUnit test cases. Following shows the current coverage. (Stats obtained by manually running coverage in Eclipse for individual components) Element Coverage Covered Instructions Missed Instructions Total Instructions org.wso2.carbon.metrics.common 60.7 % 284 184 468 org.wso2.carbon.metrics.data.common 89.1 % 350 43 393 org.wso2.carbon.metrics.data.service 91.4 % 3,066 287 3,353 org.wso2.carbon.metrics.impl 86.6 % 4,838 746 5,584 org.wso2.carbon.metrics.jdbc.reporter 94.9 % 1,899 103 2,002 Thanks! [1] https://github.com/wso2/carbon-metrics [2] http://markmail.org/message/s7boioidv2ktagac [3] https://github.com/wso2/carbon-metrics/commit/d774046c7c88f2b80eaf92b5477148267e43f57e [4] https://github.com/wso2/carbon-business-messaging/pull/65 [5] https://github.com/wso2/carbon-metrics/commit/146686fd4f0f4733749b98be5b107109f1dee7b2 [6] https://github.com/wso2/carbon-metrics/commit/3e80ba2fa546e4e735abd0c592af13ceadeb8e01 [7] https://github.com/wso2/carbon-metrics/commit/ab6a187775f3ae14531d3cffe8c38ff301fecfd1 [8] https://github.com/wso2/carbon-metrics/commit/b467d21f7e3922620741262b04ae8c678786f884 [9] https://github.com/wso2/carbon-metrics/commit/db0dc3639a43df8e214e03b2525c2a4ecfabbdf4 [10] https://github.com/wso2/carbon-metrics/tree/master/components -- Isuru Perera Associate Technical Lead | WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware about.me/chrishantha Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
