Skip to main content
Version: 2.1.0

Metrics monitoring

Available metrics

This section describes the available metrics provided by the Micrometer Java library.

All available metrics can be accessed through the actuator endpoint inside the microservice Docker container. By default, the actuator port is not exposed outside of the Docker container.

To retrieve the metrics, you can use the following curl command:

curl http://localhost:8081/actuator/metrics?scope=tenant

Where tenant is the name of your project.

The 8081 port is fixed for all REGARDS microservice deployments.

info

By default the 8081 port is not open in the microservices docker containers. So if you want to access it outside the docker network, you need to open it as describe in the Microservice configuration manual.

General Metrics

Provides metrics about running spring boot application.

Metric labelTypeDescription
application.ready.timeTimerTime elapsed in seconds from application startup to readiness for requests.
application.started.timeTimerTime elapsed in seconds from application startup to the completion of initialization.
disk.freeGaugeAvailable disk space on the system in bytes.
disk.totalGaugeTotal disk size in bytes.
process.cpu.timeTimerTotal CPU time consumed by the process in nanoseconds.
process.cpu.usageGaugePercentage of CPU usage by the current process (between 0 and 1).
process.files.maxGaugeMaximum number of open files allowed for the process.
process.files.openGaugeCurrent number of open files by the process.
process.start.timeGaugeTimestamp of process start time in seconds since Unix epoch.
process.uptimeTimerTime the process has been running in seconds.
system.cpu.countGaugeTotal number of CPU cores available on the system.
system.cpu.usageGaugeAverage CPU usage of the system (between 0 and 1).
system.load.average.1mGaugeSystem load average over the last minute.
tasks.scheduled.executionCounterTotal number of scheduled tasks executed.
tasks.scheduled.execution.activeGaugeCurrent number of scheduled tasks running.

JVM Metrics

Provides metrics about the JVM running the spring boot application.

Metric labelTypeDescription
jvm.buffer.countGaugeNumber of memory buffers used by the JVM.
jvm.buffer.memory.usedGaugeAmount of memory used by buffers in bytes.
jvm.buffer.total.capacityGaugeTotal capacity of buffers in bytes.
jvm.classes.loadedGaugeTotal number of classes loaded by the JVM.
jvm.classes.unloadedCounterTotal number of classes unloaded by the JVM.
jvm.compilation.timeCounterTotal time spent in JIT compilation in milliseconds.
jvm.gc.live.data.sizeGaugeCurrent size of live data after garbage collection.
jvm.gc.max.data.sizeGaugeMaximum size of live data allowed.
jvm.gc.memory.allocatedCounterTotal amount of memory allocated by the GC in bytes.
jvm.gc.memory.promotedCounterTotal amount of memory promoted to old generation.
jvm.gc.overheadGaugePercentage of JVM time spent on garbage collection.
jvm.gc.pauseTimerDuration of garbage collection pauses.
jvm.infoGaugeInformation about the running JVM version.
jvm.memory.committedGaugeMemory allocated by the JVM in bytes.
jvm.memory.maxGaugeMaximum memory allocated by the JVM in bytes.
jvm.memory.usage.after.gcGaugeMemory usage after garbage collection.
jvm.memory.usedGaugeMemory currently used by the JVM in bytes.
jvm.threads.daemonGaugeNumber of daemon threads.
jvm.threads.liveGaugeNumber of currently active threads.
jvm.threads.peakGaugePeak number of active threads.
jvm.threads.startedCounterTotal number of threads created since startup.
jvm.threads.statesGaugeDistribution of threads by state (RUNNABLE, BLOCKED, WAITING, etc.).

Jetty Metrics

Provides metrics about the Jetty server used by spring boot application.

Metric labelTypeDescription
jetty.connections.bytes.inCounterTotal number of bytes received by Jetty connections.
jetty.connections.bytes.outCounterTotal number of bytes sent by Jetty connections.
jetty.connections.currentGaugeCurrent number of active Jetty connections.
jetty.connections.maxGaugeMaximum number of Jetty connections observed.
jetty.connections.messages.inCounterTotal number of messages received by Jetty.
jetty.connections.messages.outCounterTotal number of messages sent by Jetty.
jetty.connections.requestCounterTotal number of HTTP requests handled by Jetty.
jetty.threads.busyGaugeNumber of currently busy threads in Jetty.
jetty.threads.config.maxGaugeMaximum number of configured threads in Jetty.
jetty.threads.config.minGaugeMinimum number of configured threads in Jetty.
jetty.threads.currentGaugeTotal number of current threads used by Jetty.
jetty.threads.idleGaugeNumber of idle threads in Jetty.
jetty.threads.jobsCounterTotal number of jobs executed by Jetty threads.

Database Access Metrics

Provides metrics about the all the accesses to the microservice database.

Metric labelTypeDescription
hikaricp.connectionsGaugeCurrent number of connections managed by HikariCP.
hikaricp.connections.acquireTimerAverage time taken to acquire a connection from the pool.
hikaricp.connections.activeGaugeNumber of currently active connections.
hikaricp.connections.creationCounterTotal number of created connections.
hikaricp.connections.idleGaugeNumber of idle connections available in the pool.
hikaricp.connections.maxGaugeMaximum number of connections allowed in the pool.
hikaricp.connections.minGaugeMinimum number of connections maintained in the pool.
hikaricp.connections.pendingGaugeNumber of pending requests for a connection.
hikaricp.connections.timeoutCounterNumber of connections that timed out due to unavailability.
hikaricp.connections.usageGaugePercentage of time connections are in use.
http.client.requestsCounterTotal number of HTTP requests sent by the client.
http.client.requests.activeGaugeCurrent number of ongoing HTTP client requests.
http.server.requestsCounterTotal number of HTTP requests received by the server.
http.server.requests.activeGaugeCurrent number of ongoing HTTP server requests.
jdbc.connections.activeGaugeCurrent number of active JDBC connections.
jdbc.connections.idleGaugeNumber of idle JDBC connections.
jdbc.connections.maxGaugeMaximum number of JDBC connections opened simultaneously.
jdbc.connections.minGaugeMinimum number of JDBC connections kept open.
spring.data.repository.invocationsCounterTotal number of Spring Data repository invocations.

Common REGARDS metrics

Metric labelTypeDescription
regards_job_creation_countCounterNumber of job creation
regards_job_done_countCounterNumber of terminated jobs
regards_running_job_countCounterNumber of running jobs