Skip to content

Latest commit

 

History

History
144 lines (108 loc) · 9.11 KB

monitor-signalr-reference.md

File metadata and controls

144 lines (108 loc) · 9.11 KB
titledescriptionms.datems.customms.topicauthorms.authorms.service
Monitoring data reference for Azure SignalR Service
This article contains important reference material you need when you monitor Azure SignalR Service.
03/21/2024
horz-monitor
reference
vicancy
lianwei
azure-signalr-service

Azure SignalR Service monitoring data reference

[!INCLUDE horz-monitor-ref-intro]

See Monitor Azure SignalR Service for details on the data you can collect for Azure SignalR Service and how to use it.

[!INCLUDE horz-monitor-ref-metrics-intro]

Metrics for Azure SignalR Service are in the Errors, Saturation, or Traffic categories.

Supported metrics for Microsoft.SignalRService/SignalR

The following table lists the metrics available for the Microsoft.SignalRService/SignalR resource type. [!INCLUDE horz-monitor-ref-metrics-tableheader] [!INCLUDE Microsoft.SignalRService/SignalR]

Supported metrics for Microsoft.SignalRService/SignalR/replicas

The following table lists the metrics available for the Microsoft.SignalRService/SignalR/replicas resource type. [!INCLUDE horz-monitor-ref-metrics-tableheader] [!INCLUDE Microsoft.SignalRService/SignalR/replicas]

For more details about the metrics for Azure SignalR Service, see Azure SignalR Service metrics.

Note

The metrics aggregation types appear in metrics explorer in the Azure portal as Count, Avg, Min, Max, and Sum.

Count is the count of sampling data received. Count is defined as a general metrics aggregation type and can't be excluded from the list of available aggregation types. It's not generally useful for SignalR Service but can sometimes be used to check if the sampling data has been sent to metrics.

[!INCLUDE horz-monitor-ref-metrics-dimensions-intro]

[!INCLUDE horz-monitor-ref-metrics-dimensions]

Endpoint

Describes the type of connection. Includes dimension values: Client, Server, and LiveTrace.

ConnectionCloseCategory

Gives the reason for closing the connection. Includes the following dimension values.

ValueDescription
NormalConnection closed normally.
ThrottledWith Message count/rate or connection throttling, check Connection Count and Message Count current usage and your resource limits.
PingTimeoutConnection ping timeout.
NoAvailableServerConnectionClient connection can't be established and doesn't pass handshake because there's no available server connection.
InvokeUpstreamFailedUpstream invoke failed.
SlowClientToo many unsent messages queued up at service side.
HandshakeErrorConnection terminated in the handshake phase, which could be caused by the remote party closing the WebSocket connection without completing the close handshake. HandshakeError is caused by a network issue. Check browser settings to see if the client is able to create a websocket connection.
ServerConnectionNotFoundTarget hub server not available. This value is by design and reconnection should be done after this drop.
ServerConnectionClosedClient connection closed because the corresponding server connection was dropped. When app server uses Azure SignalR Service SDK, in the background, it initiates server connections to the remote Azure SignalR Service. Each client connection to the service is associated with one of the server connections to route traffic between the client and app server. Once a server connection is closed, all the client connections it serves are closed with the ServerConnectionDropped message.
ServiceTransientErrorInternal server error.
BadRequestA bad request is caused by an invalid hub name, wrong payload, or a malformed request.
ClosedByAppServerApp server asked the service to close the client.
ServiceReloadService reload is triggered when a connection is dropped due to an internal service component reload. This event doesn't indicate a malfunction and is part of normal service operation.
ServiceModeSwitchedConnection closed after service mode switched, such as from Serverless mode to Default mode.
UnauthorizedThe connection is unauthorized.

[!INCLUDE horz-monitor-ref-resource-logs]

Supported resource logs for Microsoft.SignalRService/SignalR

[!INCLUDE Microsoft.SignalRService/SignalR]

Supported resource logs for Microsoft.SignalRService/SignalR/replicas

[!INCLUDE Microsoft.SignalRService/SignalR/replicas]

Resource Log table mapping

Field names for Log Analytics vary slightly from field names for Storage destinations.

Archive log schema for a storage account

Archive log JSON strings include the following elements:

Format

NameDescription
timeLog event time.
levelLog event level.
resourceIdResource ID of the Azure SignalR Service.
locationLocation of the Azure SignalR Service.
categoryCategory of the log event.
operationNameOperation name of the event.
callerIpAddressIP address of the server/client.
propertiesDetailed properties related to this log event, as listed in the following table.

Properties

NameDescription
typeType of the log event. Currently, ConnectivityLogs type is available, to provide information about connectivity to the Azure SignalR Service.
collectionCollection of the log event. Allowed values are Connection, Authorization, or Throttling.
connectionIdIdentity of the connection.
transportTypeTransport type of the connection. Allowed values are Websockets, ServerSentEvents, or LongPolling.
connectionTypeType of the connection. Allowed values are Server or Client. Server is connection from server side and Client is connection from client side.
userIdIdentity of the user.
messageDetailed message of log event.

Archive logs schema for Log Analytics

Archive log columns include the following elements:

NameDescription
TimeGeneratedLog event time.
CollectionCollection of the log event. Allowed values are: Connection, Authorization, and Throttling.
OperationNameOperation name of the event.
LocationLocation of the Azure SignalR Service.
LevelLog event level.
CallerIpAddressIP address of the server/client.
MessageDetailed message of log event.
UserIdIdentity of the user.
ConnectionIdIdentity of the connection.
ConnectionTypeType of the connection. Allowed values are: Server or Client. Server is connection from server side and Client is connection from client side.
TransportTypeTransport type of the connection. Allowed values are: Websockets, ServerSentEvents, or LongPolling

[!INCLUDE horz-monitor-ref-logs-tables]

SignalR

Microsoft.SignalRService/SignalR

[!INCLUDE horz-monitor-ref-activity-log]

Related content

close