Package io.sbm.logger.impl
Class SbmPrometheusServer
java.lang.Object
io.perl.logger.impl.Metrics
io.perl.logger.impl.PrintMetrics
io.perl.logger.impl.PrometheusMetricsServer
io.sbk.logger.impl.SbkPrometheusServer
io.sbm.logger.impl.SbmPrometheusServer
- All Implemented Interfaces:
io.perl.logger.Print
,io.sbk.logger.RWPrint
,CountConnections
public final class SbmPrometheusServer
extends io.sbk.logger.impl.SbkPrometheusServer
implements CountConnections
Class RamMetricsPrometheusServer.
-
Field Summary
Fields inherited from class io.sbk.logger.impl.SbkPrometheusServer
rwMetricPrefix
Fields inherited from class io.perl.logger.impl.PrintMetrics
registry
Fields inherited from class io.perl.logger.impl.Metrics
avgLatencyName, bytesName, higherDiscardName, invalidLatencyRecordsName, lowerDiscardName, maxLatencyName, mbPsecName, metricPrefix, metricTimeUnit, minLatencyName, percentileFormat, percentileNames, recordsName, recsPsecName, slc1Name, slc2Name
-
Constructor Summary
ConstructorDescriptionSbmPrometheusServer
(String header, String action, String storageName, double[] percentiles, io.time.Time time, io.sbk.logger.MetricsConfig config) Constructor RamMetricsPrometheusServer initializingconnections
andmaxConnections
and calling its super class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Decrement.void
Increment.Methods inherited from class io.sbk.logger.impl.SbkPrometheusServer
print
Methods inherited from class io.perl.logger.impl.PrometheusMetricsServer
start, stop
Methods inherited from class io.perl.logger.impl.PrintMetrics
close, print
-
Constructor Details
-
SbmPrometheusServer
public SbmPrometheusServer(String header, String action, String storageName, double[] percentiles, io.time.Time time, io.sbk.logger.MetricsConfig config) throws IOException Constructor RamMetricsPrometheusServer initializingconnections
andmaxConnections
and calling its super class.- Parameters:
header
- Stringaction
- StringstorageName
- storageNamepercentiles
- double[]time
- Timeconfig
- MetricsConfig- Throws:
IOException
- If it Occurs.
-
-
Method Details
-
incrementConnections
public void incrementConnections()Description copied from interface:CountConnections
Increment.- Specified by:
incrementConnections
in interfaceCountConnections
-
decrementConnections
public void decrementConnections()Description copied from interface:CountConnections
Decrement.- Specified by:
decrementConnections
in interfaceCountConnections
-