sijie commented on issue #188: jmx emote Monitoring
URL: https://github.com/apache/distributedlog/issues/188#issuecomment-329250540
 
 
   both bookkeeper and distributedlog use the `StatsProvider` interfaces for 
exposing and collecting stats. There are different stats providers available in 
http://bookkeeper.apache.org/docs/latest/admin/metrics/. You can also have a 
stats provider implementation that use your own monitoring systems.
   
   If you don't have any monitoring systems, and if you are running in k8s, you 
are recommended to use the Prometheus stats provider, which prometheus has been 
integrated with k8s heavily.
   
   Or you can just use the default codahale stats provider.
   
   
http://bookkeeper.apache.org/distributedlog/docs/latest/admin_guide/monitoring.html
 has the instructions on how to configure and use the stats provider.
   
   for codahale stats provider, you can configure a jmx reporter to [report all 
the stats via 
JMX](http://metrics.dropwizard.io/3.2.3/getting-started.html#reporting-via-jmx) 
- by specifying the jmx endpoint in the configuration 
`codahaleStatsJmxEndpoint`: 
https://github.com/apache/bookkeeper/blob/master/bookkeeper-stats-providers/codahale-metrics-provider/src/main/java/org/apache/bookkeeper/stats/CodahaleMetricsProvider.java#L73
   
   Hope this help.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to