Should be an easy question but I can't seem to find the answer.
So cockpit-pcp displays about cpu,ram,network etc. usage and displays it in graphs.
Where is this information phisically being stored? Can I remove old data? Can I change the location it is being stored? etc.
Where does cockpit-pcp store its data
Re: Where does cockpit-pcp store its data
Logs are here:
/var/log/pcp/pmlogger/$(hostname)/
/var/log/pcp/pmlogger/$(hostname)/
Re: Where does cockpit-pcp store its data
Start with /etc/pcp.conf which contains the lines:
So now go to /var/log/pcp/pmlogger and look around, you should see a subdirectory named after your machine. Go there and look.
The answers to your questions are therefore:
Code: Select all
# parent directory of PCP archive directories
# Standard path: /var/log/pcp/pmlogger
PCP_ARCHIVE_DIR=/var/log/pcp/pmlogger
- Latest is the start of the latest log.
- plogger.log records everything the logger has done, including a complete list of metrics.
- date.xxx
- index binary file created daily
- meta binary file created daily
- n data files, starts with 0 each day and rolls over as required
The answers to your questions are therefore:
- Where is this information phisically being stored? - See above
- Can I remove old data? - Don't bother, pmlogger does it for you.
- Can I change the location it is being stored? - Yes, in the configuration file, but I would strongly advise against it.
Re: Where does cockpit-pcp store its data
Thank you guys for the clear responses.
How does pmlogger rotate or delete (old) logs? Is this configurable? Thanks for the help.
Re: Where does cockpit-pcp store its data
See man pmlogger_check. Its 23:00 here, so you'll need to do further searching yourself until I awake tomorrow!