Skip to content

Incorrect proxy statistics #4044

Closed

Description

@dimitar-kostadinov

When registry is configured as a pull-through cache, proxy statistics exposed via expvar are not correct.
The registry_proxy_blobs BytesPulled and BytesPushed are not reported as expected and registry_proxy_manifests Hits plus Misses is not always equals to Requests.
If nginx image (size 67.2MB) is pulled through the registry cache, it reports the following:

"registry": {
    ...
    "proxy": {
        "blobs": {
            "Requests": 16,
            "Hits": 16,
            "Misses": 0,
            "BytesPulled": 0,
            "BytesPushed": 134373410
        },
        "manifests": {
            "Requests": 3,
            "Hits": 3,
            "Misses": 2,
            "BytesPulled": 3640,
            "BytesPushed": 5502
        }
    }
}

It is expected that blobs BytesPulled and BytesPushed have value ~67.2MB like the one bellow:

"registry": {
    ...
    "proxy": {
        "blobs": {
            "Requests": 8,
            "Hits": 0,
            "Misses": 8,
            "BytesPulled": 67186705,
            "BytesPushed": 67186705
        },
        "manifests": {
            "Requests": 3,
            "Hits": 1,
            "Misses": 2,
            "BytesPulled": 3640,
            "BytesPushed": 5502
        }
    }
}

Activity

  1. added
    area/proxy
    on Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/proxy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions