You can export persistent statistics for a node to a CSV file. The CSV file includes a value, a timestamp, an MBean path, and a node name for each attribute included in the statistics.
You can also export persistent statistics for a cluster. Carrying out a cluster-level export creates a separate zipped folder with the persistent statistics for each node in the cluster. The name and location of the zipped folder display in the log of the corresponding node.
Persistent statistics are exported asynchronously, both for clusters and individual nodes.
The following image shows an example CSV file.
To export persistent statistics for a node:
- In NexJ System Admin Console, navigate to the Statistics page.
- In the list in the Statistics area, locate and expand the node for which you want to collect application logs, and select Diagnostics. For example, navigate to:
<
application_name>/<node_name>/Diagnostic
Available commands display in the details area on the bottom right. - Double-click the dumpStats command in the details area.
The Invoke dumpStats command dialog opens. - Enter the period for which you want to export statistics.
- [Optional] To restrict the output to specific statistics, you can enter a Scheme WHERE clause containing the attributes or values you want to export. For example, if you only want to view the total message count, enter the following expression in Scheme clause:
(= attribute "Total message count")
- Click Invoke.
The persistent statistics are exported. If you are exporting statistics for the current node, the name and location of the dump file display in the Result area and the log. If you are exporting statistics for a different node, the name and location of the dump file display only in the log of the node. - Click the Close button on the top right corner to close the Invoke dumpStats command dialog.
You have exported persistent statistics for a node.
Configuring persistent statistics