OK, that looks more promising (but the question on whether the docs in the original link are correct still stands).

However, I'm having problems accessing the stats. Using the username and password found in the service definition e.g.:

curl admin:<password>@172.30.67.67:1936/metrics

I get a:

HTTP/1.1 401 Unauthorized

This is with OKD 3.11

Tim


On 16/10/2019 16:24, Brian Jarvis wrote:
Information on accessing the router metrics can be found [0].

[0] https://docs.okd.io/3.11/install_config/router/default_haproxy_router.html#exposing-the-router-metrics


On Tue, Oct 15, 2019 at 6:09 AM Tim Dudgeon <tdudgeon...@gmail.com <mailto:tdudgeon...@gmail.com>> wrote:

    So how do I access these?

    And are the docs here [1] wrong?

    [1] https://docs.okd.io/3.11/admin_guide/router.html

    On 14/10/2019 19:26, Clayton Coleman wrote:
    Metrics are exposed via the controller process in the pod (pid1),
    not the HAProxy process.

    On Mon, Oct 14, 2019 at 1:27 PM Tim Dudgeon
    <tdudgeon...@gmail.com <mailto:tdudgeon...@gmail.com>> wrote:

        I'm trying to see the router stats as described here:
        https://docs.okd.io/3.11/admin_guide/router.html

        I can see this from within the container using the command:

        echo 'show stat' | socat -
        UNIX-CONNECT:/var/lib/haproxy/run/haproxy.sock

        But they do not seem to be being exposed through the web
        listener as
        described in that doc. In fact I can't see anything in the
        haproxy.config file that suggests that haproxy is exposing
        stats on port
        1936 or any other port.

        The installation was a fairly standard openshift-ansible
        install so I'm
        sure the defaults have not been changed.

        Are there any instructions for how to get this working?

        Thanks
        Tim

        _______________________________________________
        users mailing list
        users@lists.openshift.redhat.com
        <mailto:users@lists.openshift.redhat.com>
        http://lists.openshift.redhat.com/openshiftmm/listinfo/users

    _______________________________________________
    users mailing list
    users@lists.openshift.redhat.com
    <mailto:users@lists.openshift.redhat.com>
    http://lists.openshift.redhat.com/openshiftmm/listinfo/users





_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to