Package de.iip_ecosphere.platform.services.environment.spring.metricsProvider
package de.iip_ecosphere.platform.services.environment.spring.metricsProvider
Specific additions to the metrics provider through Spring Cloud Stream.
-
ClassesClassDescriptionThis class represents an interface to manage the Micrometer-API meters.
An instance of this class is auto-wired into the Stream Application and will act as a metrics provider for the service application.
The operations available in this class are: Consulting the amount of custom meters of each type Modifying, consulting or deleting a custom gauge Modifying, consulting or deleting a custom counter Modifying, consulting or deleting a custom timer Consult the current capacity base unit for the Memory and Disk metrics It is recommended to use the dot notation to name the meters, i.e.This class provides a RESTful Service to access theMetricsProviderinstance running in the Spring Service.This class aims to provide a handler for expected exceptions that could occur when using theMetricsProviderRestService.
This class contains a mechanism implemented by Spring Rest Controller that allows the creation of custom exception handlers to expected exceptions that may occur during requests and, as a result provide a more custom response to the request.
There are two types of exceptions handled by this class: IllegalArgumentExceptions NumberFormatExceptionsBinds theTransportSetupagainst Spring.