Skip to content

Latest commit

 

History

History
113 lines (90 loc) · 4.64 KB

howto-monitor-data-reference.md

File metadata and controls

113 lines (90 loc) · 4.64 KB
titledescriptionauthorms.servicems.topicms.datems.author
Monitoring Azure Web PubSub data reference
Important reference material needed when you monitor logs and metrics in Azure Web PubSub.
wanlwanl
azure-web-pubsub
how-to
05/15/2023
wanl

Monitoring Azure Web PubSub data reference

This article provides a reference of log and metric data collected to analyze the performance and availability of Azure Web PubSub. See the Monitor Azure Web PubSub article for details on collecting and analyzing monitoring data for Azure Web PubSub.

Metrics

Metrics provide insights into the operational state of the service. The available metrics are:

MetricUnitRecommended Aggregation TypeDescriptionDimensions
Connection Close CountCountSumThe count of connections closed by various reasons.ConnectionCloseCategory
Connection CountCountMax / AvgThe number of connections to the service.No Dimensions
Connection Open CountCountSumThe count of new connections opened.No Dimensions
Connection Quota UtilizationPercentMax / AvgThe percentage of connections relative to connection quota.No Dimensions
Inbound TrafficBytesSumThe inbound traffic to the service.No Dimensions
Outbound TrafficBytesSumThe outbound traffic from the service.No Dimensions
Server LoadPercentMax / AvgThe percentage of server load.No Dimensions

For more information, see Metrics.

Resource Logs

Archive to a storage account

Archive log JSON strings include elements listed in the following tables:

Format

NameDescription
timeLog event time
levelLog event level
resourceIdResource ID of your Azure SignalR Service
locationLocation of your Azure SignalR Service
categoryCategory of the log event
operationNameOperation name of the event
callerIpAddressIP address of your server or client
propertiesDetailed properties related to this log event. For more detail, see the properties table below

Properties Table

NameDescription
collectionCollection of the log event. Allowed values are: Connection, Authorization and Throttling
connectionIdIdentity of the connection
userIdIdentity of the user
messageDetailed message of log event
hubUser-defined Hub Name
routeTemplateThe route template of the API
httpMethodThe HTTP method (POST/GET/PUT/DELETE)
urlThe uniform resource locator
traceIdThe unique identifier to the invocation
statusCodeThe HTTP response code
durationThe duration between the request is received and processed
headersThe additional information passed by the client and the server with an HTTP request or response

The following code is an example of an archive log JSON string:

{ "properties": { "message": "Connection started", "collection": "Connection", "connectionId": "LW61bMG2VQLIMYIVBMmyXgb3c418200", "userId": null }, "operationName": "ConnectionStarted", "category": "ConnectivityLogs", "level": "Informational", "callerIpAddress": "167.220.255.79", "resourceId": "/SUBSCRIPTIONS/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/RESOURCEGROUPS/MYGROUP/PROVIDERS/MICROSOFT.SIGNALRSERVICE/WEBPUBSUB/MYWEBPUBSUB", "time": "2021-09-17T05:25:05Z", "location": "westus" }

Archive logs schema for Log Analytics

Archive log columns include elements listed in the following table.

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

Azure Monitor Logs tables

Azure Web PubSub uses Kusto tables from Azure Monitor Logs. You can query these tables with Log analytics.

See also

close