Output Formatting
The AMPS monitoring interface offers several possible output formats to ease the consumption of monitoring reporting data. The possible options are XML, CSV and RNC output formats, each of which is discussed in more detail below.
JSON Document Output
All monitoring interface resources can have the current node, along with all child nodes, list its output as a JSON document by appending the .json
file extension to the end of the resource name. For example, if an administrator would like to have a JSON document of all of the CPUs on the server, including all the relevant statistics about those CPUs, then the following URI will generate that information:
http://localhost:8085/amps/host/cpus.json
The document that is returned will be similar to the following:
Appending the .json
file extension to any AMPS monitoring interface resource will generate the corresponding JSON document.
XML Document Output
All monitoring interface resources can have the current node, along with all child nodes, list its output as an XML document by appending the .xml
file extension to the end of the resource name. For example, if an administrator would like to have an XML document of all of the currently running processors, including all the relevant statistics about those processors, then the following URI will generate that information:
http://localhost:8085/amps/instance/processors/all.xml
The document that is returned will be similar to the following:
Appending the .xml
file extension to any AMPS monitoring interface resource will generate the corresponding XML document.
CSV Document Output
The .csv
file extension can be appended to any leaf node resource to have a CSV file generated to examine those values.
This can also be coupled with the time range selection to generate reports. See Time Range Selection above for more details on time range selection.
Below is a sample of the .csv
output from the monitoring interface from the following URL:
http://localhost:8085/amps/instance/processors/all/matches_found_per_sec.csv?t0=20230830T0
This resource will create a file with the following contents:
Leaf Nodes
A leaf node of the monitoring interface represents a single recorded statistic. Leaf nodes do support CSV document output.
Examples of leaf node endpoints include:
http://localhost:8085/amps/instance/processors/all/messages_received_per_sec
or
http://localhost:8085/amps/instance/transaction_log/write_latency
Non-Leaf Nodes
A non-leaf node represents an aggregate of related statistics. Non-leaf nodes do not support CSV document output. Due to the limitations of the tabular format of CSV, there is no clear way to translate the hierarchical structure of a non-leaf node into a CSV document.
Examples of non-leaf node endpoints include:
http://localhost:8085/amps/instance/processors/all
or
http://localhost:8085/amps/instance/transaction_log
RNC Document Output
AMPS supports generation of an XML schema via the Relax NG Compact (RNC) specification language. To generate an RNC file, enter the following URL in a browser:
http://localhost:port/amps.rnc
AMPS will display the RNC schema.
To convert the RNC schema into an XML schema, first save the RNC output to a file:
The output can then be converted to an xml schema using Trang (available at http://code.google.com/p/jing-trang/) with:
Last updated