Document URL: https://docs.openshift.com/container-platform/3.6/install_config/router/default_haproxy_router.html#exposing-the-router-metrics Section Number and Name: Exposing Router Metrics Describe the issue: 1. Documentation states, if ROUTER_METRICS_TYPE is set (by default) to haproxy then http://admin:<Password>@localhost:1936/metrics should return Prometheus format statistics. My testing revealed we get a text file with csv Prometheus format statistics with only /metrics exposed. 2. Documentation states, if ROUTER_METRICS_TYPE is deleted we get HAproxy csv metrics on http://admin:<Password>@localhost:1936/metrics. My testing revealed we get an html file with statistics on ANY url. Meaning /metrics /ANYTHING will return that html file that has an option to CSV export. Suggestions for improvement: Please clearly specify both the url to get the metrics and the actual file time returned, txt or html Additional information:
https://github.com/openshift/openshift-docs/pull/10549
6/30 @knobunc Is this something your team can help with? (I pulled a QuickLab instance to test, but it won't allow users to get metrics.)
What do you need? Dan Mace (needinfo'd) is probably the right person now to do that. He's the Network Edge lead (and the Router is part of that).
The reporter is asking for at least: "Suggestions for improvement: Please clearly specify both the url to get the metrics and the actual file time returned, txt or html" based on ROUTER_METRICS_TYPE being set or not (if I read the concern correctly. See Description https://bugzilla.redhat.com/show_bug.cgi?id=1548500#c0 and changes I made via PR https://github.com/openshift/openshift-docs/pull/10549/files
The doc PR looks good, will move BZ to VERIFIED when it is merged. Thanks
Changes are live https://docs.openshift.com/container-platform/3.10/install_config/router/default_haproxy_router.html#exposing-the-router-metrics