Package io.sbk.logger.impl
Class SbkPrometheusServer
java.lang.Object
io.perl.logger.impl.Metrics
io.perl.logger.impl.PrintMetrics
io.perl.logger.impl.PrometheusMetricsServer
io.sbk.logger.impl.SbkPrometheusServer
- All Implemented Interfaces:
io.perl.logger.Print
,RWPrint
public class SbkPrometheusServer
extends io.perl.logger.impl.PrometheusMetricsServer
implements RWPrint
-
Field Summary
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
ConstructorDescriptionSbkPrometheusServer
(String header, String action, String className, double[] percentiles, io.time.Time time, MetricsConfig config) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
print
(int writers, int maxWriters, int readers, int maxReaders, long writeRequestBytes, double writeRequestMbPerSec, long writeRequestRecords, double writeRequestRecordsPerSec, long readRequestBytes, double readRequestMbPerSec, long readRequestRecords, double readRequestRecordsPerSec, long writeResponsePendingRecords, long writeResponsePendingBytes, long readResponsePendingRecords, long readResponsePendingBytes, long writeReadRequestPendingRecords, long writeReadRequestPendingBytes, long writeTimeoutEvents, double writeTimeoutEventsPerSec, long readTimeoutEvents, double readTimeoutEventsPerSec, double seconds, long bytes, long records, double recsPerSec, double mbPerSec, double avgLatency, long minLatency, long maxLatency, long invalid, long lowerDiscard, long higherDiscard, long slc1, long slc2, long[] percentileValues) Print the Periodic performance results.Methods inherited from class io.perl.logger.impl.PrometheusMetricsServer
start, stop
Methods inherited from class io.perl.logger.impl.PrintMetrics
close, print
-
Field Details
-
rwMetricPrefix
-
-
Constructor Details
-
SbkPrometheusServer
public SbkPrometheusServer(String header, String action, String className, double[] percentiles, io.time.Time time, MetricsConfig config) throws IOException - Throws:
IOException
-
-
Method Details
-
print
public final void print(int writers, int maxWriters, int readers, int maxReaders, long writeRequestBytes, double writeRequestMbPerSec, long writeRequestRecords, double writeRequestRecordsPerSec, long readRequestBytes, double readRequestMbPerSec, long readRequestRecords, double readRequestRecordsPerSec, long writeResponsePendingRecords, long writeResponsePendingBytes, long readResponsePendingRecords, long readResponsePendingBytes, long writeReadRequestPendingRecords, long writeReadRequestPendingBytes, long writeTimeoutEvents, double writeTimeoutEventsPerSec, long readTimeoutEvents, double readTimeoutEventsPerSec, double seconds, long bytes, long records, double recsPerSec, double mbPerSec, double avgLatency, long minLatency, long maxLatency, long invalid, long lowerDiscard, long higherDiscard, long slc1, long slc2, long[] percentileValues) Description copied from interface:RWPrint
Print the Periodic performance results.- Specified by:
print
in interfaceRWPrint
- Parameters:
writers
- number of active writersmaxWriters
- Max writersreaders
- number of active readersmaxReaders
- Max ReaderswriteRequestBytes
- Write requests ByteswriteRequestMbPerSec
- Write requests MB/secwriteRequestRecords
- Write RequestswriteRequestRecordsPerSec
- Write Requests/secreadRequestBytes
- Read requests BytesreadRequestMbPerSec
- Read requests MB/secreadRequestRecords
- Read requestsreadRequestRecordsPerSec
- Read Requests/secwriteResponsePendingRecords
- Write response pending recordswriteResponsePendingBytes
- Write response pending bytesreadResponsePendingRecords
- Read response pending recordsreadResponsePendingBytes
- Read response pending byteswriteReadRequestPendingRecords
- Write read pending recordswriteReadRequestPendingBytes
- Write read pending byteswriteTimeoutEvents
- Timeout Write EventswriteTimeoutEventsPerSec
- Timeout Write Events/secreadTimeoutEvents
- Timeout Read EventsreadTimeoutEventsPerSec
- Timeout Write Events/secseconds
- reporting duration in secondsbytes
- number of bytes read/writerecords
- data to write.recsPerSec
- records per second.mbPerSec
- Throughput value in terms of MB (Mega Bytes) per Second.avgLatency
- Average Latency.minLatency
- Minimum Latency.maxLatency
- Maximum Latency.invalid
- Number of invalid/negative latencies.lowerDiscard
- number of discarded latencies which are less than minimum latency.higherDiscard
- number of discarded latencies which are higher than maximum latency.slc1
- Sliding Latency Coverage factorslc2
- Sliding Latency Coverage factorpercentileValues
- Array of percentile Values.
-