Package org.fcrepo.migration.metrics
Class PrometheusActuator
- java.lang.Object
-
- org.fcrepo.migration.metrics.PrometheusActuator
-
public class PrometheusActuator extends Object
Simple actuator for publishing metrics for Prometheus- Author:
- mikejritter
-
-
Constructor Summary
Constructors Constructor Description PrometheusActuator(boolean enableMetrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart()Start the HTTP server for metric publishingvoidstop()Stop the HTTP server
-
-
-
Constructor Detail
-
PrometheusActuator
public PrometheusActuator(boolean enableMetrics)
-
-
Method Detail
-
start
public void start()
Start the HTTP server for metric publishing- Throws:
RuntimeException- if the server cannot be started
-
stop
public void stop()
Stop the HTTP server
-
-