Skip to content

Instantly share code, notes, and snippets.

@jovemfelix
Last active October 19, 2022 14:26
Show Gist options
  • Save jovemfelix/4070c7a6a249b9d007ff6cfb60177cd6 to your computer and use it in GitHub Desktop.
Save jovemfelix/4070c7a6a249b9d007ff6cfb60177cd6 to your computer and use it in GitHub Desktop.

Steps

$ oc project openshift-ingress
$ statsPassword=$(oc extract secret/router-stats-default --keys=statsPassword --to=-)
$ statsUsername=$(oc extract secret/router-stats-default --keys=statsUsername --to=-)

$ oc get pods
$ oc exec -it pod/router-default-577b87cd94-jv5s7 -- curl -s -u ${statsUsername}:${statsPassword} 127.0.0.1:1936/metrics | grep haproxy

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment