VPN Connect Metrics

You can monitor the health, capacity, and performance of your VPN Connect by using metrics, alarms, and notifications. For more information, see Monitoring Overview and Notifications Overview.

This topic describes the metrics emitted by the metric namespace oci_vpn.

Resources: IPSec connections.

Overview of Metrics: oci_vpn

The available metrics help you determine quickly if your VPN Connect is up, how much data is flowing over the connection, and if packets are being dropped for unexpected errors.

A VPN Connect includes these resources:

  • An IPSec connection, which you can think of as the parent resource (identified by parentResourceId in the following discussion).
  • One or more individual tunnels associated with that IPSec connection (each identified by the tunnel's publicIp in the following discussion).

Required IAM Policy

To monitor resources, you must be given the required type of access in a policy  written by an administrator, whether you're using the Console or the REST API with an SDK, CLI, or other tool. The policy must give you access to the monitoring services as well as the resources being monitored. If you try to perform an action and get a message that you don’t have permission or are unauthorized, confirm with your administrator the type of access you've been granted and which compartment  you should work in. For more information on user authorizations for monitoring, see the Authentication and Authorization section for the related service: Monitoring or Notifications.

Available Metrics: oci_vpn

The metrics listed in the following table are automatically available for any VPN Connect that you create. You do not need to enable monitoring on the resource to get these metrics.

You also can use the Monitoring service to create custom queries.

Each metric includes the following dimensions: 

PARENTRESOURCEID
The OCID  of the IPSec connection (the parent resource). The connection has multiple individual tunnels.
PUBLICIP
Although each tunnel has its own OCID , it can be easier to use the publicIp dimension to identify a specific IPSec tunnel in the connection. The value is the public IP address of the Oracle end of the tunnel (also known as the Oracle VPN headend).
Metric Metric Display Name Unit Description Dimensions
TunnelState IPSec Tunnel State

Binary (1 or 0)

Whether the tunnel is up (1) or down (0).

parentResourceId

publicIp

PacketsReceived Packets Received

Packets

Number of packets received at the Oracle end of the connection.

BytesReceived Bytes Received

Bytes

Number of bytes received at the Oracle end of the connection.

PacketsSent Packets Sent

Packets

Number of packets sent from the Oracle end of the connection.

BytesSent Bytes Sent

Bytes

Number of bytes sent from the Oracle end of the connection.

PacketsError Packets with Errors

Packets

Number of packets dropped at the Oracle end of the connection. Dropped packets indicate a misconfiguration in some part of the overall system. Check if there's been a change to the configuration of your VCN, the IPSec VPN, or your CPE.

Using the Console

To view default metrics charts for an individual tunnel in an IPSec connection
  1. Open the navigation menu. Under Core Infrastructure, go to Networking and click IPSec Connections.

  2. Click the IPSec connection to view its details.
  3. Click the tunnel you're interested in to view its details and default metrics charts.

For more information about monitoring metrics and using alarms, see Monitoring Overview. For information about notifications for alarms, see Notifications Overview.

To view default metric charts for all IPSec connections in a compartment
  1. Open the navigation menu. Under Solutions and Platform, go to Monitoring and click Service Metrics.
  2. For Compartment, select the compartment that contains the IPSec connection you're interested in.
  3. For Metric Namespace, select oci_vpn.

    The Service Metrics page dynamically updates the page to show charts for each metric that is emitted by the selected metric namespace.

Each IPSec tunnel is a single line in a given chart. The tunnel is identified in the chart by the public IP address of the Oracle end of the tunnel.

For more information about monitoring metrics and using alarms, see Monitoring Overview. For information about notifications for alarms, see Notifications Overview.