...
Below is the definition for CPU Load TopN. Note this is looking for a Statistic named cpuLoad and it looks for it in the derived_data section of the nodes node's MongoDB database entry. This means to have this TopN work for your node there must be a PRINT line in Common-stats.nmis which returns "cpuLoad" calculated / normalised from that nodes CPU statistics. See next section for more information on calculating.
The items y
Code Block | ||||
---|---|---|---|---|
| ||||
// VERSION=2.46.0 { "name": "TopN CPU Load", "tags": [ "topn" ], "ep_template_file": "charts/topn/topn_table_component", "ep_configuration_file" : "charts/topn/topn_table_component_configuration", "options": { "titleText": "TopN CPU Load", "limit" : 10, "show_element": 0, "show_sparkline": 0, "show_value": 1 }, "order": 1, "parameters": { "topn_key": "cpuLoad", "data_section": "derived_data", }, "type": "ep_template" } |
...
The new TopN table should now appear in opCharts TopN page and also as an option when adding a component to a dashboard under the opCharts data source.
Last Step
After the previous steps have been completed, make sure the nmis_topn_export.pl script has run, then check the TopN page for the new data. If there is none, verify the data is being created by checking <omkd_topn> directory for the new json file. Verify the file has contents, if it does not run the nmis_topn_export.pl in debug and search the output for the new entry field/data.