7.18 Enabling Stored Metrics
In a standard installation Cockpit does not retain any of the performance metric data beyond what is displayed in the short time window covered by the graphs. To retain the data collected by Cockpit, the stored metrics feature needs to be installed. Begin by installing the cockpit-pcp package as follows:
# dnf install cockpit-pcp
To enable metric persistence, display the System screen and click on the Enable stored metrics... link highlighted in Figure 7-20:
Figure 7-20
Once this option has been selected, Cockpit will request permission to install the cockpit-pcp, pcp-libs and pcp-selinux packages. Once these packages have been installed, the Enable persistent metrics link will have been replaced by a control labeled Store Metrics. When this option is enabled, the performance graphs will include additional controls allowing you to move back and forth in time to view historical data and to change the data time frame ranging from 1 hour up to 1 week:
Figure 7-21