Types of metrics
The following types of metrics are available on the Centralized Logging with OpenSearch console.
Log source metrics
Fluent Bit
-
FluentBitOutputProcRecords
- The number of log records that this output instance has successfully sent. This is the total record count of all unique chunks sent by this output. If a record is not successfully sent, it does not count towards this metric. -
FluentBitOutputProcBytes
- The number of bytes of log records that this output instance has successfully sent. This is the total byte size of all unique chunks sent by this output. If a record is not sent due to some error, then it will not count towards this metric. -
FluentBitOutputDroppedRecords
- The number of log records that have been dropped by the output. This means they met an unrecoverable error or retries expired for their chunk. -
FluentBitOutputErrors
- The number of chunks that have faced an error (either unrecoverable or retrievable). This is the number of times a chunk has failed, and does not correspond with the number of error messages you see in the Fluent Bit log output. -
FluentBitOutputRetriedRecords
- The number of log records that experienced a retry. Note that this is calculated at the chunk level, and the count increased when an entire chunk is marked for retry. An output plugin may or may not perform multiple actions that generate many error messages when uploading a single chunk. -
FluentBitOutputRetriesFailed
- The number of times that retries expired for a chunk. Each plugin configures aRetry_Limit
which applies to chunks. Once the Retry_Limit has been reached for a chunk, it is discarded and this metric is incremented. -
FluentBitOutputRetries
- The number of times this output instance requested a retry for a chunk.
Network Load Balancer
-
SyslogNLBActiveFlowCount
- The total number of concurrent flows (or connections) from clients to targets. This metric includes connections in the SYN_SENT and ESTABLISHED states. TCP connections are not terminated at the load balancer, so a client opening a TCP connection to a target counts as a single flow. -
SyslogNLBProcessedBytes
- The total number of bytes processed by the load balancer, including TCP/IP headers. This count includes traffic to and from targets, minus health check traffic.
Buffer metrics
Log Buffer is a buffer layer between the Log Agent and OpenSearch clusters. The agent uploads logs into the buffer layer before being processed and delivered into the OpenSearch clusters. A buffer layer is a way to protect OpenSearch clusters from overwhelming.
Kinesis Data Stream
-
KDSIncomingBytes
– The number of bytes successfully put to the Kinesis stream over the specified time period. This metric includes bytes from PutRecord and PutRecords operations. Minimum, Maximum, and Average statistics represent the bytes in a single put operation for the stream in the specified time period. -
KDSIncomingRecords
– The number of records successfully put to the Kinesis stream over the specified time period. This metric includes record counts from PutRecord and PutRecords operations. Minimum, Maximum, and Average statistics represent the records in a single put operation for the stream in the specified time period. -
KDSPutRecordBytes
– The number of bytes put to the Kinesis stream using the PutRecord operation over the specified time period. -
KDSThrottledRecords
– The number of records rejected due to throttling in a PutRecords operation per Kinesis data stream, measured over the specified time period. -
KDSWriteProvisionedThroughputExceeded
– The number of records rejected due to throttling for the stream over the specified time period. This metric includes throttling from PutRecord and PutRecords operations. The most commonly used statistic for this metric is Average.
When the Minimum statistic has a non-zero value, records will be throttled for the stream during the specified time period.
When the Maximum statistic has a value of 0 (zero), no records will be throttled for the stream during the specified time period.
SQS
SQSNumberOfMessagesSent
- The number of messages added to a queue.SQSNumberOfMessagesDeleted
- The number of messages deleted from the queue.
Amazon SQS emits the NumberOfMessagesDeleted metric for every successful deletion operation that uses a valid receipt handle, including duplicate deletions. The following scenarios might cause the value of the NumberOfMessagesDeleted metric to be higher than expected: - Calling the DeleteMessage action on different receipt handles that belong to the same message: If the message is not processed before the visibility timeout expires, the message becomes available to other consumers that can process it and delete it again, increasing the value of the NumberOfMessagesDeleted metric.
- Calling the DeleteMessage action on the same receipt handle: If the message is processed and deleted, but you call the DeleteMessage action again using the same receipt handle, a success status is returned, increasing the value of the NumberOfMessagesDeleted metric.
SQSApproximateNumberOfMessagesVisible
- The number of messages available for retrieval from the queue.SQSApproximateAgeOfOldestMessage
- The approximate age of the oldest non-deleted message in the queue.-
After a message is received three times (or more) and not processed, the message is moved to the back of the queue and the ApproximateAgeOfOldestMessage metric points at the second-oldest message that hasn't been received more than three times. This action occurs even if the queue has a redrive policy.
-
Because a single poison-pill message (received multiple times but never deleted) can distort this metric, the age of a poison-pill message isn't included in the metric until the poison-pill message is consumed successfully.
-
When the queue has a redrive policy, the message is moved to a dead-letter queue after the configured Maximum Receives. When the message is moved to the dead-letter queue, the ApproximateAgeOfOldestMessage metric of the dead-letter queue represents the time when the message was moved to the dead-letter queue (not the original time the message was sent).
Log processor metrics
The Log Processor Lambda is responsible for performing final processing on the data and bulk writing it to OpenSearch.
-
TotalLogs
– The total number of log records or events processed by the Lambda function. -
ExcludedLogs
– The number of log records or events that were excluded from processing, which could be due to filtering or other criteria. -
LoadedLogs
– The number of log records or events that were successfully processed and loaded into OpenSearch. -
FailedLogs
– The number of log records or events that failed to be processed or loaded into OpenSearch. -
ConcurrentExecutions
– The number of function instances that are processing events. If this number reaches your concurrent executions quota for the Region, or the reserved concurrency limit on the function, then Lambda throttles additional invocation requests. -
Duration
– The amount of time that your function code spends processing an event. The billed duration for an invocation is the value of Duration rounded up to the nearest millisecond. -
Throttles
– The number of invocation requests that are throttled. When all function instances are processing requests and no concurrency is available to scale up, Lambda rejects additional requests with a TooManyRequestsException error. Throttled requests and other invocation errors don't count as either Invocations or Errors. -
Invocations
– The number of times that your function code is invoked, including successful invocations and invocations that result in a function error. Invocations aren't recorded if the invocation request is throttled or otherwise results in an invocation error. The value of Invocations equals the number of requests billed.