This is a draft of the patch https://github.com/apache/zookeeper/pull/927
in the description you can find instructions. It is based on another patch not yet landed to master Enjoy Enrico Il giorno mer 24 apr 2019 alle ore 08:33 Enrico Olivelli <[email protected]> ha scritto: > > > > Il mer 24 apr 2019, 08:30 Justin Ling Mao <[email protected]> ha > scritto: >> >> @Enrico >> 1. --->"bind '/metrics' to the current "Admin server"" >> What do you mean is the JettyAdminServer? which is enable and binding to >> default port:8080? > > > Yes. > But for instance I have it disabled by default on every zk cluster in my > products > >> >> 2. Is the following a good option? >> e.g: >> http://<hostname>:8080/commands/metrics >> or: >> http://<hostname>:8080/metrics > > > The best will be only '/metrics' that is the default binding for P. > > Enrico > >> >> >> ----- Original Message ----- >> From: Enrico Olivelli <[email protected]> >> To: DevZooKeeper <[email protected]> >> Subject: Prometheus.io endpoint vs admin server >> Date: 2019-04-24 07:27 >> >> >> Hi, >> I am working on Prometheus endpoint. >> Prometheus client needs to expose an HTTP service, usually it is >> mapped at /metrics, the Prometheus serve polls that endpoint >> periodically in order to store metrics inside its local database. >> We have two ways: >> 1) bind '/metrics' to the current "Admin server" >> 2) let the MetricsProvider open another http endpoint >> I see value in both of the two approaches. >> Approach 1): No new ports, so more "secure" ? more user-friendly ? >> Approach 2): If I am not an user of the HTTP Admin Server I would need >> to fully enable it if I want to integrate with Prometheus, so a >> separate endpoint would be better for me. >> In Apache BookKeeper we have all of the two options available (bind to >> standard http admin endpoint or start a separate http endpoint) >> I would like to see the option of the community. >> I am open to any of the two and even to having both of them. >> Regards >> Enrico
