Add metrics and logs to emit total number of OVF cached items
#332 opened on Jan 4, 2024
Repository metrics
- Stars
- (130 stars)
- PR merge metrics
- (PR metrics pending)
Description
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: https://github.com/vmware-tanzu/vm-operator/blob/f4257d2887ae13521f924ef37b13d021a93fcab6/pkg/vmprovider/providers/vsphere/vmprovider.go#L287-L288
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