Server Metrics Web Console
The Server Metrics Web Console component adds Resources section to ONE Runtime Server Admin. The component provides detailed information about the server performance. The contents of the Server Metrics section are defined by a metrics configuration file.
To enable the component, add the following definition to the server configuration.
<serverComponents>
<component configFile="../etc/metrics.xml" disabled="false" class="com.ataccama.dqc.web.metrics.ServerMetricsWebConsole"/>
<serverComponents>
Property | Required | Description |
---|---|---|
configFile |
Yes |
Path to the metrics configuration file. It can be either relative to the server configuration file or absolute. |
The metrics file must exist.
For the initial successful execution of your server configuration file, it is enough to create an empty XML file containing only the XML header <?xml version='1.0' encoding='UTF-8'?>
.
All of the chart parameters can be later on defined in the ONE Runtime Server Admin Server Metrics section using the Add Chart option.
Several metrics are available in the Add Metric menu, for example metrics that are measuring allocated, used, or total memory, or metrics that are measuring resources consumed by database connections or HTTP Dispatcher.
<?xml version='1.0' encoding='UTF-8'?>
<metricsConfig>
<charts>
<chartBean refreshRate="60" name="cpu" historySize="10">
<metrics>
<metricBean metricId="server.memory.heap.allocated" name="allocated"/>
<metricBean metricId="server.dispatcher.console._console.requestTime" name="Total Request Time"/>
<metricBean metricId="server.dispatcher.console._console.requestTimeAvg" name="Average Request Time"/>
<metricBean metricId="server.memory.heap.total" name="total"/>
</metrics>
</chartBean>
<chartBean refreshRate="60" name="services" historySize="10">
<metrics>
<metricBean metricId="server.memory.heap.allocated" name="allocated"/>
</metrics>
</chartBean>
</charts>
</metricsConfig>
----
Was this page useful?