Bug 1855852 - haproxy_server_http_responses_total metric disappears when backing pods are not available
Summary: haproxy_server_http_responses_total metric disappears when backing pods are n...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.11.z
Assignee: Stephen Greene
QA Contact: Arvind iyengar
URL:
Whiteboard:
Depends On: 1835845
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-10 17:05 UTC by Stephen Greene
Modified: 2022-08-04 22:27 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1835845
Environment:
Last Closed: 2020-09-16 07:46:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift origin pull 25271 0 None closed [release-3.11] Bug 1855852: Backport HAProxy report all backend metrics 2021-02-10 03:29:10 UTC
Red Hat Product Errata RHBA-2020:3695 0 None None None 2020-09-16 07:47:04 UTC

Comment 1 Stephen Greene 2020-07-28 17:23:50 UTC
Adding upcoming sprint since this BZ's fix will be reviewed in the coming weeks.

Comment 5 Arvind iyengar 2020-08-31 10:05:19 UTC
Tested in "v3.11.273" release payload that contains the patch. With this version, it is noted that haproxy now exposes the  "haproxy_backend_connections_total" metric properly where the count could be seen incrementing and it continues to be available when the backend is unavailable due to different circumstances:
-----
# oc version
oc v3.11.273
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://ip-172-18-10-80.ec2.internal:8443
openshift v3.11.273
kubernetes v1.11.0+d4cacc0

# for i in {1..50}; do curl -sS  admin:PEwMwA52Vx.4.191:1936/metrics | grep -i haproxy_backend_connections_total | grep -iv "^#"|grep -i test1; sleep 2; done
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 25
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 25
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 25
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 25
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 30
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 30
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 30
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 39
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 39
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 39
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 47
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 47
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 47
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 55
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 55
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 55
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 63
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 63
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 63
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 71
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 71
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 71
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 79
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 79
-----

Comment 7 errata-xmlrpc 2020-09-16 07:46:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 3.11.286 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3695


Note You need to log in before you can comment on or make changes to this bug.