And it's available as the python3-pcp package, at least on Fedora and Debian.
And even if it wasn't available, the fact that it's based on ctypes means that we could theoretically just dist it as part of the beipack.
We knew that we'd need to get the user to install PCP anyway in order to enable the metrics history. If they're using the python bridge then we should just make sure to install python3-pcp.
Because this is Python we can do the import conditionally, meaning we don't even need a separate process for this anymore.
(We might consider a separate process still, though, if the rumours about the client library crashing are true...)
So this is a thing:
https://github.com/performancecopilot/pcp/blob/main/src/python/pcp/pmapi.py
And it's available as the
python3-pcp
package, at least on Fedora and Debian.And even if it wasn't available, the fact that it's based on ctypes means that we could theoretically just dist it as part of the beipack.
We knew that we'd need to get the user to install PCP anyway in order to enable the metrics history. If they're using the python bridge then we should just make sure to install
python3-pcp
.Because this is Python we can do the import conditionally, meaning we don't even need a separate process for this anymore.
(We might consider a separate process still, though, if the rumours about the client library crashing are true...)