[PR] MINOR: Add health check duration metric to Prometheus service
Dear list! Author: Seena Fallah Number of patches: 1 This is an automated relay of the Github pull request: MINOR: Add health check duration metric to Prometheus service Patch title(s): MINOR: Add health check duration metric to Prometheus service Link: https://github.com/haproxy/haproxy/pull/520 Edit locally: wget https://github.com/haproxy/haproxy/pull/520.patch && vi 520.patch Apply locally: curl https://github.com/haproxy/haproxy/pull/520.patch | git am - Description: Fixes: #519 Instructions: This github pull request will be closed automatically; patch should be reviewed on the haproxy mailing list (haproxy@formilux.org). Everyone is invited to comment, even the patch's author. Please keep the author and list CCed in replies. Please note that in absence of any response this pull request will be lost.
Re: Prometheus service
Le 27/02/2020 à 11:36, Seena Fallah a écrit : Hi all. I have upgraded to HAProxy 2.0.13 and enabled Prometheus service on it. In previous version (1.8.8) I used haproxy_exporter <https://github.com/prometheus/haproxy_exporter> and I have haproxy_server_check_duration_milliseconds and new_session_rate for each server but in HAProxy v2.0.13 Prometheus service I don't see these metrics. How can I have them? Hi, check_duration is not exported but it could be. But if so, it would be exported in second using a float representation. So the metric name would be haproxy_server_check_duration_seconds. About new_session_rate, I guess you mean current_session_rate. This one was removed on purpose. It can be deduced from sessions_total metric using Prometheus rate() function. -- Christopher Faulet
Prometheus service
Hi all. I have upgraded to HAProxy 2.0.13 and enabled Prometheus service on it. In previous version (1.8.8) I used haproxy_exporter <https://github.com/prometheus/haproxy_exporter> and I have haproxy_server_check_duration_milliseconds and new_session_rate for each server but in HAProxy v2.0.13 Prometheus service I don't see these metrics. How can I have them?
Re: prometheus service kills ssl handshake
Am 08.07.2019 um 12:37 schrieb Aleksandar Lazic: > Hi Christopher. > > Am 08.07.2019 um 10:30 schrieb Christopher Faulet: >> Le 06/07/2019 à 23:02, Aleksandar Lazic a écrit : >>> Hi. >>> >>> I use HAP 2.0.1 with haproxy service with my image. >>> After some times (~several hours) the ssl handshake stops working for the >>> https >>> frontend which offers the prom service. >>> > > [snipp] > >> >> Hi Aleks, >> >> Could you check with the latest 2.0 snapshot ? An issue about Prometheus was >> fixed (#151 on GitHub). And some others about connections. >> > > Okay I created the image with ss-20190706 . > > https://gitlab.com/aleks001/haproxy20-centos/commit/212ed6f4099dd92c72b426726afdf04022065798 After ~20 hours of running Prometheus scraper with ss-20190706 the ssl handshake errors are gone. From my point of view works the Prometheus exporter now. Regards Aleks
Re: prometheus service kills ssl handshake
Hi Christopher. Am 08.07.2019 um 10:30 schrieb Christopher Faulet: > Le 06/07/2019 à 23:02, Aleksandar Lazic a écrit : >> Hi. >> >> I use HAP 2.0.1 with haproxy service with my image. >> After some times (~several hours) the ssl handshake stops working for the >> https >> frontend which offers the prom service. >> [snipp] > > Hi Aleks, > > Could you check with the latest 2.0 snapshot ? An issue about Prometheus was > fixed (#151 on GitHub). And some others about connections. > Okay I created the image with ss-20190706 . https://gitlab.com/aleks001/haproxy20-centos/commit/212ed6f4099dd92c72b426726afdf04022065798 Regards Aleks
Re: prometheus service kills ssl handshake
Le 06/07/2019 à 23:02, Aleksandar Lazic a écrit : Hi. I use HAP 2.0.1 with haproxy service with my image. After some times (~several hours) the ssl handshake stops working for the https frontend which offers the prom service. The config is mainly the same as showing at the blog post https://www.me2digital.com/blog/2019/05/haproxy-sni-routing/ I have just added this line. ``` http-request use-service prometheus-exporter if { path /mymetrics } ``` This is the prometheus config snipplet. ``` - job_name: 'me2d-prom' metrics_path: '/mymetrics' scheme: 'https' static_configs: - targets: ['cloud.domain'] ``` The lines in the logs does not show too much ``` :::85.10.XXX.XXX:40276 [05/Jul/2019:13:53:33.532] https-in/1: SSL handshake failure ``` Have someone used this service in the main https config? Which data (show ...) should I provide to debug this topic? Hi Aleks, Could you check with the latest 2.0 snapshot ? An issue about Prometheus was fixed (#151 on GitHub). And some others about connections. -- Christopher Faulet
prometheus service kills ssl handshake
Hi. I use HAP 2.0.1 with haproxy service with my image. After some times (~several hours) the ssl handshake stops working for the https frontend which offers the prom service. The config is mainly the same as showing at the blog post https://www.me2digital.com/blog/2019/05/haproxy-sni-routing/ I have just added this line. ``` http-request use-service prometheus-exporter if { path /mymetrics } ``` This is the prometheus config snipplet. ``` - job_name: 'me2d-prom' metrics_path: '/mymetrics' scheme: 'https' static_configs: - targets: ['cloud.domain'] ``` The lines in the logs does not show too much ``` :::85.10.XXX.XXX:40276 [05/Jul/2019:13:53:33.532] https-in/1: SSL handshake failure ``` Have someone used this service in the main https config? Which data (show ...) should I provide to debug this topic? Best regards Aleks