Operation: ListMetrics
Die Operation ListMetrics
gibt alle Messdaten des Systems zurück.
Für diese Operation müssen die folgenden Parameter gesetzt werden:
protocol
host
port
path
Input
Für diese Operation ist kein Input erforderlich.
Output mit wildfly als Endpunkt
Mit wildfly als Endpunkt generiert der Adapter generiert eine XML-Datei im folgenden Format:
<?xml version="1.0" encoding="UTF-8"?>
<metrics>
<metric>
<name>base_classloader_loadedClasses_total</name>
<help>Displays the total number of classes that have been loaded since the Java virtual machine has started execution.</help>
<type>counter</type>
<value>35672.0</value>
</metric>
<metric>
<name>base_classloader_loadedClasses_count</name>
<help>Displays the number of classes that are currently loaded in the Java virtual machine.</help>
<type>gauge</type>
<value>35023.0</value>
</metric>
<metric>
<name>base_classloader_unloadedClasses_total</name>
<help>Displays the total number of classes unloaded since the Java virtual machine has started execution.</help>
<type>counter</type>
<value>649.0</value>
</metric>
<metric>
<name>base_cpu_availableProcessors</name>
<help>Displays the number of processors available to the Java virtual machine. This value may change during a particular invocation of the virtual machine.</help>
<type>gauge</type>
<value>16.0</value>
</metric>
<metric>
<name>base_cpu_processCpuLoad</name>
<help>Displays the "recent cpu usage" for the Java Virtual Machine process.</help>
<type>gauge</type>
<value>8.727748738848019E-5</value>
</metric>
<metric>
<name>base_cpu_processCpuTime_seconds</name>
<help>Displays the CPU time used by the process on which the Java virtual machine is running in nanoseconds</help>
<type>gauge</type>
<value>127.40625000000001</value>
</metric>
<metric>
<name>base_cpu_systemLoadAverage</name>
<help>Displays the system load average for the last minute. The system load average is the sum of the number of runnable entities queued to the available processors and the number of runnable entities running on the available processors averaged over a period of time. The way in which the load average is calculated is operating system specific but is typically a damped time-dependent average. If the load average is not available, a negative value is displayed. This attribute is designed to provide a hint about the system load and may be queried frequently. The load average may be unavailable on some platform where it is expensive to implement this method.</help>
<type>gauge</type>
<value>-1.0</value>
</metric>
<metric>
<name>base_gc_total</name>
<help>Displays the total number of collections that have occurred. This attribute lists -1 if the collection count is undefined for this collector.</help>
<type>counter</type>
<labels>
<label name="name">G1 Old Generation</label>
</labels>
<value>0.0</value>
</metric>
...
</metrics>
Für wildfly können Daten auch über folgende URL aufgerufen werden:
Output mit Keycloak als Endpunkt
Mit Keycloak als Endpunkt generiert der Adapter generiert eine XML-Datei im folgenden Format:
<?xml version="1.0" encoding="UTF-8"?>
<metrics>
<metric>
<name>base_classloader_loadedClasses_count</name>
<help>Displays the number of classes that are currently loaded in the Java virtual machine.</help>
<type>gauge</type>
<value>18209.0</value>
</metric>
<metric>
<name>base_classloader_loadedClasses_total</name>
<help>Displays the total number of classes that have been loaded since the Java virtual machine has started execution.</help>
<type>counter</type>
<value>18308.0</value>
</metric>
<metric>
<name>base_classloader_unloadedClasses_total</name>
<help>Displays the total number of classes unloaded since the Java virtual machine has started execution.</help>
<type>counter</type>
<value>99.0</value>
</metric>
<metric>
<name>base_cpu_availableProcessors</name>
<help>Displays the number of processors available to the Java virtual machine. This value may change during a particular invocation of the virtual machine.</help>
<type>gauge</type>
<value>16.0</value>
</metric>
...
<metric>
<name>base_gc_time_total_seconds</name>
<help>Displays the approximate accumulated collection elapsed time in milliseconds. This attribute displays -1 if the collection elapsed time is undefined for this collector. The Java virtual machine implementation may use a high resolution timer to measure the elapsed time. This attribute may display the same value even if the collection count has been incremented if the collection elapsed time is very short.</help>
<type>counter</type>
<labels>
<label name="name">G1 Old Generation</label>
</labels>
<value>0.0</value>
</metric>
...
</metrics>
Für Keycloak können die Daten auch über folgende URL aufgerufen werden:
Elemente im Output
Folgende Elemente sind im Output für wildfly und Keycloak enthalten:
Element | Beschreibung |
---|---|
| Wurzelelement für die Operation |
| Das Element metrics enthält folgende Elemente:
|
| Name des Messwertes |
| Beschreibung des Messwertes |
| Typ des Messwerts Mögliche Werte:
|
| Name des Subdeployments. Das Element |
| Wert, der gemessen wurde. Mögliche Werte: Beliebige Dezimalzahl |