Package org.restheart.metrics
Class MetricsService
java.lang.Object
org.restheart.metrics.MetricsService
- All Implemented Interfaces:
CORSHeaders,ConfigurablePlugin,ExchangeTypeResolver<StringRequest,,StringResponse> HandlingPlugin<StringRequest,,StringResponse> Plugin,Service<StringRequest,,StringResponse> StringService
Service to returns metrics in prometheus format.
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringprefix for registry names used by retheart-metrics pluginsFields inherited from interface org.restheart.exchange.CORSHeaders
ACCESS_CONTROL_ALLOW_CREDENTIAL, ACCESS_CONTROL_ALLOW_HEADERS, ACCESS_CONTROL_ALLOW_METHODS, ACCESS_CONTROL_ALLOW_ORIGIN, ACCESS_CONTROL_EXPOSE_HEADERS, DEFAULT_ACCESS_CONTROL_ALLOW_CREDENTIALS, DEFAULT_ACCESS_CONTROL_ALLOW_HEADERS, DEFAULT_ACCESS_CONTROL_ALLOW_METHODS, DEFAULT_ACCESS_CONTROL_ALLOW_ORIGIN, DEFAULT_ACCESS_CONTROL_EXPOSE_HEADERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(StringRequest request, StringResponse response) voidonInit()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.restheart.plugins.ConfigurablePlugin
arg, argOrDefaultMethods inherited from interface org.restheart.exchange.CORSHeaders
accessControlAllowCredentials, accessControlAllowHeaders, accessControlAllowMethods, accessControlAllowOrigin, accessControlExposeHeadersMethods inherited from interface org.restheart.plugins.ExchangeTypeResolver
requestType, responseTypeMethods inherited from interface org.restheart.plugins.Service
handle, handleOptions, handleOptionsMethods inherited from interface org.restheart.plugins.StringService
request, requestInitializer, response, responseInitializer
-
Field Details
-
METRICS_REGISTRIES_PREFIX
prefix for registry names used by retheart-metrics plugins
-
-
Constructor Details
-
MetricsService
public MetricsService()
-
-
Method Details
-
onInit
public void onInit() -
handle
- Specified by:
handlein interfaceService<StringRequest,StringResponse> - Parameters:
request-response-- Throws:
IOException
-