Hi, On Tue, Jun 16, 2015 at 4:32 PM, Anuja Herath <an...@wso2.com> wrote:
> Hi, > > Is there a way to find if metrics are enabled and then only collect > metrics. Same as we do in writing debug logs. (log.ifDebugEnabled()) > This is done internally. If Metrics feature is disabled or particular level is disabled, the particular metric is not processed. In addition, the Metrics reporters also have a filter to check whether a Metric is enabled before going ahead with the report method. So, there is no need to have guard conditions like in logging libraries. > > Thanks. > > On Tue, Jun 16, 2015 at 4:27 PM, Isuru Perera <isu...@wso2.com> wrote: > >> Let's enable "Metrics" by default in MB. There shouldn't be much impact >> by Metrics. We can confirm when we do performance tests. >> >> I will do the configuration change in Metric feature [1]. >> >> Thanks! >> >> [1] >> https://github.com/wso2/carbon-metrics/blob/master/features/carbon-metrics/org.wso2.carbon.metrics.server.feature/src/main/resources/conf/metrics.xml >> >> On Tue, Jun 16, 2015 at 4:08 PM, Ramith Jayasinghe <ram...@wso2.com> >> wrote: >> >>> $subject ? >>> >>> -- >>> Ramith Jayasinghe >>> Technical Lead >>> WSO2 Inc., http://wso2.com >>> lean.enterprise.middleware >>> >>> E: ram...@wso2.com >>> P: +94 777542851 >>> >>> >> >> >> -- >> 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 >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Anuja Herath > *Software Engineer* > *WSO2, Inc.* > Mobile : +94 (0)71 429 8861 > -- 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 Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev