Overview

Information in this article is related to using CloudMonix for monitoring Azure Virtual Network Gateways.


The article covers the following topics:

  • common use cases where CloudMonix can help with monitoring

  • what is needed to connect to and monitor Azure Virtual Network Gateways

  • what metrics can be tracked, visualized and monitored


Why use CloudMonix for Azure Virtual Network Gateways?


Popular usages of CloudMonix include the following examples:

  • Alerting on rate of data sent out or received reaching the limit

  • Monitoring connections and their status thru Azure VPN Gateway

  • Alerting on the resource outage


Configuration


CloudMonix will use Azure Monitoring API for monitoring Azure Virtual Network Gateways. Both Classic and v2/ARM API resources are supported.


Azure Virtual Network Gateway monitoring can be configured either via Setup Wizard or by using the “Add New” button in the dashboard. It’s highly recommended to use Setup Wizard when configuring permissions for the first time, as that will simplify authorization. Learn more about authorizing with Setup Wizard here.




Metrics


Every diagnostic data point that CloudMonix retrieves from the monitored resource is considered a metric in CloudMonix. Refer to the Metrics article to learn more about metrics in general.


CloudMonix provides a default template for monitoring Azure Virtual Network.



The metrics can be added, removed and customized in the Metrics tab in the resource configuration dialog.


Built-in Metrics

ResourceStatus

Identifies the last state of the monitored resource. This is a critical metric that is captured for most types of resources that CloudMonix tracks. It is used for Uptime reports and should not be removed.

  • Data Type: string

  • Possible values: Ready, Down, Unknown

  • Included in sample profile: yes, tracked in both templates as a metric called Status

  • Included in default alerts: yes, in an alert called ResourceOutage (Error) Status other than Ready sustained for at least 2 min.

Statuses are determined according to the following rules:

  • Ready - every connection managed by the Gateway is connected

  • Down - there are no connected connections

  • Unknown - some but not all Gateway connections are connected.  Also, if Azure credentials to authorized against the Gateway are invalid


AzureNetworkGatewayEgress

Tracks overall Egress on all connections in bytes. To track Egress on a specific connection, utilize AzureNetworkGatewayConnectionEgress metric.

  • Data Type: long

  • Included in sample profile: yes, tracked as a metric called Egress

  • Included in default alerts: no


AzureNetworkGatewayEgressRate

Tracks approximate Egress bytes/sec rate across all connections. To track Egress rate on a specific connection, utilize AzureNetworkGatewayConnectionEgressRate metric.


  • Data Type: double

  • Included in sample profile:  yes, tracked as a metric called EgressRate

  • Included in default alerts: yes, in an alert High Bandwidth utilization (Warning): Raises an alert when Egress or Ingress rates are within 80% of 100mbits (adjust to 400mbit for High Performance Gateway SKU)


AzureNetworkGatewayIngress

Tracks overall Ingress on all connections in bytes. To track Ingress on a specific connection, utilize AzureNetworkGatewayConnectionIngress metric.

  • Data Type: long

  • Included in sample profile:  yes, tracked as a metric called Ingress

  • Included in default alerts: no


AzureNetworkGatewayIngressRate

Tracks approximate Ingress bytes/sec rate across all connections. To track Ingress rate on a specific connection, utilize AzureNetworkGatewayConnectionIngressRate metric.

  • Data Type: double

  • Included in sample profile:  yes, tracked as a metric called IngressRate

  • Included in default alerts: yes, in an alert High Bandwidth utilization (Warning): Raises an alert when Egress or Ingress rates are within 80% of 100mbits (adjust to 400mbit for High Performance Gateway SKU)


AzureNetworkGatewayConnectionList

Tracks a list of all connections and their associated properties.

  • Data Type: object with the following properties:

    • LocalName (string): The connection name.

    • State (string): The connection state, possible values Connected, Connecting, NotConnected, Unknown.

    • Egress (long): The number of bytes of data transferred out through this connection since it was started.

    • EgressRateBytesPerSec (double):

    • IngressRateBytesPerSec  (long): The average throughput of data transferred out through this connection since it was started, in bytes per second.

    • Ingress (long): The number of bytes of data transferred in through this connection since it was started.

    • IngressRateBytesPerSec  (long): The average throughput of data transferred in through this connection since it was started, in bytes per second.

    • EstablishedTimestamp (DateTime): The time that the last connection was established.

    • LastEventId (string): Optional, the id of the last provisioning event for this connection. That information is not available for v2/ARM API resources, the value is always “Not Supported”.

    • LastEventMessage (string): Optional, the message of the last provisioning event for this connection. That information is not available for v2/ARM API resources, the value is always “Not Supported”.

    • LastEventTimestamp (DateTime): Optional, the timestamp of the last provisioning event for this connection. That information is not available for v2/ARM API resources, the value is always 01/01/0001.

  • Included in sample profile: yes, tracked as a metric called ConnectionList

  • Included in default alerts: no


AzureNetworkConnectionsTotal

Tracks total number of connections.

  • Data Type: int

  • Included in sample profile: yes, tracked as a metric called TotalConnections

  • Included in default alerts: no


AzureNetworkConnectionsConnected

Tracks total number of Connected connections.

  • Data Type: int

  • Included in sample profile: yes, tracked as a metric called ConnectedConnections

  • Included in default alerts: no


AzureNetworkConnectionsConnecting

Tracks total number of Connecting connections.

  • Data Type: int

  • Included in sample profile: yes, tracked as a metric called ConnectionList

  • Included in default alerts: no


AzureNetworkConnectionsNotConnected

Tracks total number Disconnected connections.

  • Data Type: int

  • Included in sample profile: no

  • Included in default alerts: no


AzureNetworkConnectionsUnknown

Tracks total number of Unknown connections.

  • Data Type: int

  • Included in sample profile: no

  • Included in default alerts: no


AzureNetworkGatewayConnectionEgress

Tracks Egress for a specific connection.

  • Data Type: long

  • Requires specifying a connection

  • Included in sample profile: no

  • Included in default alerts: no


AzureNetworkGatewayConnectionEgressRate

Tracks approximate Ingress bytes/sec rate for a specific connection. Calculation is done by taking the delta between current and previous Egress measurements.

  • Data Type: double

  • Requires specifying a connection

  • Included in sample profile: no

  • Included in default alerts: no


AzureNetworkGatewayConnectionIngress

Tracks Ingress for a specific connection.

  • Data Type: long

  • Requires specifying a connection

  • Included in sample profile: no

  • Included in default alerts: no


AzureNetworkGatewayConnectionIngressRate

Tracks approximate Ingress bytes/sec rate for a specific connection. Calculation is done by taking the delta between current and previous Ingress measurements.

  • Data Type: double

  • Requires specifying a connection

  • Included in sample profile: no

  • Included in default alerts: no


Alerts


Users can create alerts based on changes in any value tracked by CloudMonix (including custom metrics). Each resource template includes alerts which are suitable for a given resource. The predefined alerts for Azure Virtual Network are listed in the Metrics section. Refer to the Alerts article to learn more about alerts in general.


Alerts are available during the Trial period or in Professional and Ultimate plans only.