Caché Monitoring Guide - InterSystems Documentation
Caché Monitoring Guide - InterSystems Documentation
Caché Monitoring Guide - InterSystems Documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Summaries<br />
11.3 Summaries<br />
The %Monitor.System.HistoryPerf and %Monitor.System.HistorySys classes, as executed by the %MONAPP process, also<br />
create the hourly and daily summaries at the end of each day. The summaries are defined as the persistent classes<br />
SYS.History.Hourly and SYS.History.Daily; they include all four of the base classes as embedded objects.<br />
For each metric property, the system may calculate the average, maximum (high-water mark), standard deviation, minimum,<br />
median, or total for each hour and for the whole day. The summary functions are selectable (or may be disabled) for each<br />
base class (SYS.History.Performance, SYS.History.WriteDaemon, SYS.History.SystemUsage, or SYS.History.Database) and<br />
for each summary period class, using the SetSummary() method of each of the base classes. By default, the History<br />
Monitor calculates average, maximum and standard deviation for each class for both hourly and daily summaries.<br />
Note:<br />
The counter properties of the SYS.History.Performance class are normalized to per second rates for these calculations<br />
(except Total).<br />
Purging Data<br />
After creating the summaries, the %MONAPP process automatically purges the interval and hourly databases. The default<br />
is seven (7) days for interval data and 60 days for hourly data, but these may be changed using the SetPurge() method in<br />
SYS.History.PerfData and SYS.History.Hourly classes. The SYS.History.Daily data is not automatically purged, but can be<br />
done manually using the SYS.History.Daily:Purge() method.<br />
11.4 Accessing the Data<br />
Since the database is defined as persistent classes, the data is available using standard SQL or persistent object access.<br />
Using the SQL browser in the Management Portal is a quick and easy way to see the various SQL schemas/tables that are<br />
created, including the individual property values.<br />
There are several basic queries implemented in each of the persistent classes in SYS.History (SYS.History.PerfData,<br />
SYS.History.SysData, SYS.History.Hourly, and SYS.History.Daily) that can be used to access the individual tables for a date<br />
range; for more information about the queries, see the class reference documentation.<br />
The are also several Export() methods provided for each persistent class so that the individual tables can be exported to<br />
files in CSV format, suitable for use with a spreadsheet such as Microsoft Excel. In particular, the<br />
SYS.History.PerfData:Export() method creates a file that is very similar in format to that created by the ^mgstat utility<br />
(for more information, see the “<strong>Monitoring</strong> Performance Using ^mgstat” chapter of this guide).<br />
<strong>Caché</strong> <strong>Monitoring</strong> <strong>Guide</strong> 99