CloudWatch metrics
You can use CloudWatch metrics to monitor and provide alerts about specific events that can result in HTTP status codes or from latency.
HTTP endpoint metrics
-
4XXError
-
Errors resulting from requests that are not valid due to an incorrect client configuration. For example, these errors can occur when the request includes an incorrect JSON payload or an incorrect query, when the service is throttled, or when the authorization settings are misconfigured.
Unit: Count. Use the Sum statistic to get the total occurrences of these errors.
-
5XXError
-
Errors encountered during the execution of a request. This could also happen if Amazon AppSyncc encounters an issue during processing of a request.
Unit: Count. Use the Sum statistic to get the total occurrences of these errors.
-
Latency
-
The time between when Amazon AppSync receives a request from a client and when it returns a response to the client. This doesn’t include the network latency encountered for a response to reach the end devices.
Unit: Millisecond. Use the Average statistic to evaluate expected latencies.
Requests
-
The number of requests (queries + mutations) that all APIs in your account have processed, by Region.
Unit: Count. The number of all requests processed in a particular Region.
TokensConsumed
-
Tokens are allocated to
Requests
based on the amount of resources (processing time and memory used) that aRequest
consumes. Usually, eachRequest
consumes one token. However, aRequest
that consumes large amounts of resources is allocated additional tokens as needed.Unit: Count. The number of tokens allocated to requests processed in a particular Region.
DroppedEvents
The count of input events filtered by a OnPublish handler.
Unit: Count.
FailedEvents
The count of input events that encountered error during processing.
Unit: Count.
SuccessfulEvents
The count of input events that were processed successfully and submitted for broadcast in the OnPublish handler.
Unit: Count.
PublishedHandlerInvocations
The number of OnPublish handler invocations.
Unit: Count.
Real-time endpoint metrics
ConnectRequests
-
The number of WebSocket connection requests made to Amazon AppSync, including both successful and unsuccessful attempts.
Unit: Count. Use the Sum statistic to get the total number of connection requests.
ConnectSuccess
-
The number of successful WebSocket connections to Amazon AppSync. It is possible to have connections without subscriptions.
Unit: Count. Use the Sum statistic to get the total occurrences of the successful connections.
ConnectClientError
-
The number of WebSocket connections that were rejected by Amazon AppSync because of client-side errors. This could imply that the service is throttled or that the authorization settings are misconfigured.
Unit: Count. Use the Sum statistic to get the total occurrences of the client-side connection errors.
ConnectServerError
-
The number of errors that originated from Amazon AppSync while processing connections. This usually happens when an unexpected server-side issue occurs.
Unit: Count. Use the Sum statistic to get the total occurrences of the server-side connection errors.
DisconnectSuccess
-
The number of successful WebSocket disconnections from Amazon AppSync.
Unit: Count. Use the Sum statistic to get the total occurrences of the successful disconnections.
DisconnectClientError
-
The number of client errors that originated from Amazon AppSync while disconnecting WebSocket connections.
Unit: Count. Use the Sum statistic to get the total occurrences of the disconnection errors.
DisconnectServerError
-
The number of server errors that originated from Amazon AppSync while disconnecting WebSocket connections.
Unit: Count. Use the Sum statistic to get the total occurrences of the disconnection errors.
SubscribeSuccess
-
The number of subscriptions that were successfully registered to Amazon AppSync through WebSocket. It's possible to have connections without subscriptions, but it's not possible to have subscriptions without connections.
Unit: Count. Use the Sum statistic to get the total occurrences of the successful subscriptions.
SubscribeClientError
-
The number of subscriptions that were rejected by Amazon AppSync because of client-side errors. This can occur when a JSON payload is incorrect, the service is throttled, or the authorization settings are misconfigured.
Unit: Count. Use the Sum statistic to get the total occurrences of the client-side subscription errors.
SubscribeServerError
-
The number of errors that originated from Amazon AppSync while processing subscriptions. This usually happens when an unexpected server-side issue occurs.
Unit: Count. Use the Sum statistic to get the total occurrences of the server-side subscription errors.
UnsubscribeSuccess
-
The number of unsubscribe requests that were successfully processed.
Unit: Count. Use the Sum statistic to get the total occurrences of the successful unsubscribe requests.
UnsubscribeClientError
-
The number of unsubscribe requests that were rejected by Amazon AppSync because of client-side errors.
Unit: Count. Use the Sum statistic to get the total occurrences of the client-side unsubscribe request errors.
UnsubscribeServerError
-
The number of errors that originated from Amazon AppSync while processing unsubscribe requests. This usually happens when an unexpected server-side issue occurs.
Unit: Count. Use the Sum statistic to get the total occurrences of the server-side unsubscribe request errors.
BroadcastEventSuccess
-
The number of events that were successfully broadcast to subscribers.
Unit: Count. Use the Sum statistic to get the total of events that were successfully broadcast.
BroadcastEventClientError
-
The number of events that failed to broadcast because of client-side errors.
Unit
: Count. Use the Sum statistic to get the total occurrences of the client-side broadcast events errors BroadcastEventServerError
-
The number of errors that originated from Amazon AppSync while broadcasting events . This usually happens when an unexpected server-side issue occurs.
Unit: Count. Use the Sum statistic to get the total occurrences of the server-side broadcast errors.
BroadcastEventSize
-
The size of events broadcast.
Unit: Bytes.
ActiveConnections
-
The number of concurrent WebSocket connections from clients to Amazon AppSync in 1 minute.
Unit: Count. Use the Sum statistic to get the total opened connections.
ActiveSubscriptions
-
The number of concurrent subscriptions from clients in 1 minute.
Unit: Count. Use the Sum statistic to get the total active subscriptions.
ConnectionDuration
-
The amount of time that the connection stays open.
Unit: Milliseconds. Use the Average statistic to evaluate connection duration.
InboundMessages
-
The number of inbound metered events. One metered event equals 5 kB of received event.
Unit: Count.
OutboundMessages
-
The number of metered messages successfully published. One metered message equals 5 kB of delivered data.
Unit: Count. Use the Sum statistic to get the total number of successfully published metered messages.
InboundMessageDelayed
-
The number of delayed inbound messages. Inbound messages can be delayed when either the inbound message rate quota or outbound message rate quota is breached.
Unit: Count. Use the Sum statistic to get the total number of inbound messages that were delayed.
InboundMessageDropped
-
The number of delayed inbound messages. Inbound messages can be delayed when either the inbound message rate quota or outbound message rate quota is breached.
Unit: Count. Use the Sum statistic to get the total number of inbound messages that were dropped.
SubscribeHandlerInvocations
-
The number of Subscribe handlers invoked.
Unit: Count.