Schemas
A schema defines the datasources to be captured, stored and used throughout the system. Schemas should be added to schema groups so they can be organized and easily assigned to processes.
Add a schema group (monCore) and the following schemas:
monCPU(CPU usage).monMem(memory usage).monDisk(disk usage).monAvgLoad(aggregated view of above statistics).
Create schema group
- Right-click on
KxWarehousePackage and select New > Schema Group from the context menu.
- A dialog will appear. Enter the name
monCoreand press the Add button.
-
The schema group editor will open with the schema group.
-
For now, save the schema group by clicking on the Save button on the right side of the editor.
-
The schema group will appear in the tree.
Add schemas
monMem
- Right-click on the
monCoreschema group and select New > Schema from the context menu
- A dialog will appear. Enter
monMemand click the Add button.
- A schema editor will open with the Schema Details subtab displayed. Enter a description into the text field.
- Make the
monMempart of themonCoreschema group by adding it to the selected groups.
- Now provide the column definitions for the
monMemtable. Column names and ordering are important. Enter the following column names, types, descriptions, and attributes into the schema definition:
Info box
To apply a timestamp to the data, add an initial field of type timestamp as the first column in the table.
- Once the schema definition is complete, click Save
monCPU
- Follow the steps above to create the
monCPUschema using the meta below.
| Column Name | Type |
|---|---|
| time | Timestamp |
| sym | Symbol |
| usage | Float |
monDisk
- Now create the
monDiskschema using the meta below.
| Column Name | Type |
|---|---|
| time | Timestamp |
| sym | Symbol |
| usage | Float |
monAvgLoad
- Create and define the last schema and name it
monAvgLoad.
| Column Name | Type |
|---|---|
| time | Timestamp |
| sym | Symbol |
| avgCPU | Float |
| avgMemV | Float |
| avgMemP | Float |
| avgDisk | Float |
- The updated tree will look like:







