GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.voltdb.com — @Metrics Using VoltDB@Metrics@Metrics — Returns information about the performance and current status of the database server Synopsis@Metrics DescriptionThe @Metrics system procedure returns information about the status and performance of the database server. This
information is only available if metrics are enabled when the database is started by setting
Metrics are normally accessed through the metrics port via a network request. The format and request method when using the metrics port are compatible with Prometheus, an industry standard metrics collection and reporting system. The @Metrics system procedure returns the same information, however, structured as a series of VoltTables, appropriate for a client application. Return ValuesThe procedure returns one VoltTable summarizing the amount of data being returned, then a series of VoltTables grouping the metrics by topic, with specific columns and number of rows dependent on the information required by each topic. ExampleThe following program example filters the results by the metric name MEMORY_TUPLEDATA and prints out the total number of bytes currently used to store tuples. try {
VoltTable[] results = client.callProcedureSync("@Metrics").getResults();
String metric = "MEMORY_TUPLEDATA";
int count = 0;
int tables = 0;
for (VoltTable node : results) {
if (tables++ ==1) continue; // Skip summary row
node.resetRowPosition();
while(node.advanceRow()) {
if (node.getString("NAME").equals(metric)) {
count += node.getLong("VALUE");
}
}
System.out.println("Tuple Memory in use: " + String.valueOf(count));
} catch (Exception e) { e.printStackTrace(); } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |