bloomberg/goldpinger

Missing "response-time-ms" when querying check api

akrzos-bw opened this issue · 0 comments

Describe the bug
Running curl $IP:8080/check on a goldpinger pod some of the returned results are missing field "response-time-ms". Are values less than 1ms just missing?

To Reproduce
Steps to reproduce the behavior:
on a kube cluster with a sufficently low enough network latency you'll see statuc-code 200s returned but no "response-time-ms" field:

# curl 172.20.0.221:8080/check | python -mjson.tool
...
    "podResults": {
        "x.x.x.x": {
            "HostIP": "x.x.x.x",
            "OK": true,
            "response": {
                "boot_time": "2020-01-03T20:51:07.082Z"
            },
            "status-code": 200
        },
...

Expected behavior
The field "response-time-ms" to exist when status-code 200 is returned

Environment (please complete the following information):

  • OpenShift 3.11