Move collection of memory metrics from xcp-rrdd to rrdp-squeezed #6561
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The former should not collect any metrics, and instead only consolidate them, while the latter was already collecting memory metrics using xenctrl and xenstore, but only 2 of them.
Xapi had to be modified to be able to collect the metrics from the new source, since the file where they reside has changed.
The memory_target metric was also associated with xenopsd and an RPC call. These are no longer needed and code has been deleted.
The only functional change is that now memory_target is not reported when it's not available. The new behaviour makes it work the same as other guest-agent-reported metrics. Previously it was reported as 0 instead, which was incorrect. Since the other metrics are reported in the same way, clients already know how to cope with this behaviour.
Tests done have compared an unpatched host with a patched one: