public interface CloudWatchWriterStatisticsMXBean
CloudWatchWriterStatistics.| Modifier and Type | Method and Description |
|---|---|
String |
getActualLogGroupName()
Returns the actual log group name for the appender, after substitutions.
|
String |
getActualLogStreamName()
Returns the actual log stream name for the appender, after substitutions.
|
int |
getLastBatchSize()
Returns the number of messages in the most recent batch.
|
String |
getLastErrorMessage()
Returns the most recent error from the writer.
|
List<String> |
getLastErrorStacktrace()
Returns the stack trace of the most recent error from the writer.
|
Date |
getLastErrorTimestamp()
Returns the timestamp of the most recent error from the writer.
|
int |
getMessagesDiscarded()
Returns the number of messages discarded by the current writer's message queue.
|
int |
getMessagesRequeuedLastBatch()
Returns the number of messages requeued because they could not be sent.
|
int |
getMessagesSent()
Returns the number of messages successfully sent to the logstream, by the
current writer.
|
int |
getMessagesSentLastBatch()
Returns the number of messages successfully sent to the logstream in the last
batch.
|
int |
getOversizeMessages()
Returns the number of messages that were either dropped or truncated because
they were too large for the service to accept.
|
int |
getThrottledWrites()
Returns the number of batches that were retried due to throttling.
|
int |
getUnrecoveredWriterRaceRetries()
Returns the times that the writer had to requeue a batch after receiving and
repeated
InvalidSequenceTokenException errors. |
int |
getWriterRaceRetries()
Returns the number of retries due to
InvalidSequenceTokenException
response from PutLogEvents. |
String getActualLogGroupName()
String getActualLogStreamName()
String getLastErrorMessage()
Date getLastErrorTimestamp()
List<String> getLastErrorStacktrace()
int getThrottledWrites()
int getOversizeMessages()
int getMessagesSent()
int getLastBatchSize()
int getMessagesSentLastBatch()
int getMessagesRequeuedLastBatch()
getLastErrorMessage() and getWriterRaceRetries() for more info).int getMessagesDiscarded()
int getWriterRaceRetries()
InvalidSequenceTokenException
response from PutLogEvents. This exception will be thrown when
there is a race between two writers: both get the same sequence token but only
once can use it. This may happen when there are many instances that are started
at the same time or have a low batch delay.int getUnrecoveredWriterRaceRetries()
InvalidSequenceTokenException errors. This number should
remain 0; if it is non-zero, and particularly if it is a noticeable percentage
of WriterRaceRetries, it indicates that you have too many writers
concurrently accessing the same stream. Either increase batch delay or (better)
direct output to different streams.Copyright © 2023. All rights reserved.