Skip to content

Add metrics and logs to emit total number of OVF cached items  #332

Description

@dilyar85

Please describe the solution you would like.
Currently, we lack information about the size of the OVF cache used during VM image reconciliation. It would be beneficial to add logs that provide this information when updating the cache here:

putResult := vs.ovfCache.Put(itemID, cacheItem)
logger.Info("Cache item put", "itemID", itemID, "putResult", putResult)

Is there anything else you would like to add?
This may also require a function added in the Cache to expose the size of its items.

Additionally, we should emit prometheus metrics for total number of cached items which can help root cause issues that result in the VM operator pod running out of memory.

Please tell us about your environment.
N/A

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions