zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrico Olivelli <eolive...@gmail.com>
Subject Re: Prometheus.io endpoint vs admin server
Date Wed, 01 May 2019 14:39:51 GMT
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
<eolivelli@gmail.com> ha scritto:
>
>
>
> Il mer 24 apr 2019, 08:30 Justin Ling Mao <maoling199210191@sina.com> 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 <eolivelli@gmail.com>
>> To: DevZooKeeper <dev@zookeeper.apache.org>
>> 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

Mime
View raw message