BookKeeper enables metrics collection through a variety of stats providers.
BookKeeper has stats provider implementations for four five sinks:
Provider | Provider class name |
---|---|
Codahale Metrics | org.apache.bookkeeper.stats.CodahaleMetricsProvider |
Prometheus | org.apache.bookkeeper.stats.prometheus.PrometheusMetricsProvider |
Finagle | org.apache.bookkeeper.stats.FinagleStatsProvider |
Ostrich | org.apache.bookkeeper.stats.OstrichProvider |
Twitter Science Provider | org.apache.bookkeeper.stats.TwitterStatsProvider |
The [Codahale Metrics]({{ site.github_master }}/bookkeeper-stats-providers/codahale-metrics-provider) stats provider is the default provider.
Two stats-related configuration parameters are available for bookies:
Parameter | Description | Default |
---|---|---|
enableStatistics | Whether statistics are enabled for the bookie | false |
statsProviderClass | The stats provider class used by the bookie | org.apache.bookkeeper.stats.CodahaleMetricsProvider |
To enable stats:
enableStatistics
parameter to true
statsProviderClass
to the desired provider (see the table above for a listing of classes)