Interesting, I have tried these settings at my laptop. I am able to curl
the metrics : "curl -s localhost:8000/metrics".

Can you clarify a few things:

- what version of bookkeeper are you using?
- did you happen to enable bookie http server? set httpServerEnabled to be
true

- Sijie

On Sun, Jul 8, 2018 at 8:53 PM [email protected] <
[email protected]> wrote:

> set configs , but i can't reach 8000 port.
>
>
>
> #############################################################################
> ## Stats Providers
>
> #############################################################################
>
> # Whether statistics are enabled
> enableStatistics=true
>
> # The flag to enable recording task execution stats.
> enableTaskExecutionStats=true
>
> # Stats Provider Class (if `enableStatistics` are enabled)
> # Options:
>
> #   - Prometheus        : 
> org.apache.bookkeeper.stats.prometheus.PrometheusMetricsProvider
>
> #   - Codahale          : 
> org.apache.bookkeeper.stats.codahale.CodahaleMetricsProvider
>
> #   - Twitter Finagle   : 
> org.apache.bookkeeper.stats.twitter.finagle.FinagleStatsProvider
>
> #   - Twitter Ostrich   : 
> org.apache.bookkeeper.stats.twitter.ostrich.OstrichProvider
>
> #   - Twitter Science   : 
> org.apache.bookkeeper.stats.twitter.science.TwitterStatsProvider
> # Default value is:
> #   org.apache.bookkeeper.stats.prometheus.PrometheusMetricsProvider
> #
>
> # For configuring corresponding stats provider, see details at each section 
> below.
> #
>
> # 
> statsProviderClass=org.apache.bookkeeper.stats.prometheus.PrometheusMetricsProvider
>
>
> #############################################################################
> ## Prometheus Metrics Provider
>
> #############################################################################
>
> # These configs are used when using `PrometheusMetricsProvider`.
>
> statsProviderClass=org.apache.bookkeeper.stats.prometheus.PrometheusMetricsProvider
>
> # Default port for Prometheus metrics exporter
> prometheusStatsHttpPort=8000
>
> # latency stats rollover interval, in seconds
> prometheusStatsLatencyRolloverSeconds=60
>
>
>

Reply via email to