NexJ Logo

Exporting persistent statistics

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.

This feature currently exports statistics persisted to the StatDatabase only. Statistics persisted to InfluxDB cannot be exported using this feature.

Persistent statistics are exported asynchronously, both for clusters and individual nodes.

The following image shows an example CSV file.

CSV file example for persistent statistics
To export persistent statistics for a node:

  1. In NexJ System Admin Console, navigate to the Statistics page.
  2. 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 b
    ottom right.
  3. Double-click the dumpStats command in the details area.
    The Invoke dumpStats command dialog opens.
  4. Enter the period for which you want to export statistics.
  5. [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")
  6. 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.
  7. 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