Internal TCP/UDP Load Balancing exports monitoring data to Cloud Monitoring. Monitoring metrics can be used for the following purposes:
- Evaluate an internal TCP/UDP load balancer's configuration, usage, and performance
- Troubleshoot problems
- Improve resource utilization and user experience
In addition to the predefined dashboards in Monitoring, you can create custom dashboards, set up alerts, and query the metrics through the Monitoring API.
Viewing Monitoring dashboards
- Go to Monitoring in the Google Cloud Console.
Go to Monitoring - If Resources appears in the navigation pane, select Resources and then select Google Cloud Load Balancers. Otherwise, select Dashboards and then select the dashboard named Google Cloud Load Balancers.
- Click the name of your load balancer.
In the left pane, you can see various details for the selected load balancer. In the right pane, you can see time series graphs. Click the Breakdowns link to see specific breakdowns. The left pane presents currently configured data, while the right pane can present data served by historical configurations not currently reflected in the left pane.
Defining alerting policies
You can create alerting policies to monitor the values of metrics and to notify you when those metrics violate a condition.
To create an alerting policy that monitors one or more Internal TCP Load Balancer or Internal UDP Load Balancer resources, follow these steps:
- In the Google Cloud Console, go to Monitoring.
If you have never used Cloud Monitoring, then on your first access of Monitoring in the Google Cloud Console, a Workspace is automatically created and your project is associated with that Workspace. Otherwise, if your project isn't associated with a Workspace, then a dialog appears and you can either create a Workspace or add your project to an existing Workspace. We recommend that you create a Workspace. After you make your selection, click Add.
- In the Monitoring navigation pane, select notificationsAlerting, and then select Create policy.
- Click Add condition:
- The settings in the Target pane specify the resource and metric to be monitored. In the Find resource type and metric field, select the resource Internal TCP Load Balancer or Internal UDP Load Balancer. Next, select a metric from the metrics list.
- The settings in the Configuration pane of the alerting policy determine when the alert is triggered. Most fields in this pane are populated with default values. For more information about the fields in the pane, see Configuration in the Alerting policies documentation.
- Click Add.
- To advance to the notifications section, click Next.
- Optional: To add notifications to your alerting policy, click
Notification channels. In the dialog, select one or more notification
channels from the menu, and then click OK.
If a notification channel that you want to add isn't listed, then click Manage notification channels. You are taken to the Notification channels page in a new browser tab. From this page, you can update the configured notification channels. After you have completed your updates, return to the original tab, click autorenewRefresh, and then select the notification channels to add to the alerting policy.
- To advance to the documentation section, click Next.
- Click Name and enter a name for the alerting policy.
- Optional: Click Documentation, and then add any information that you want included in a notification message.
- Click Save.
Defining Monitoring custom dashboards
You can create custom Monitoring dashboards over Internal TCP/UDP Load Balancing metrics:
- Go to Monitoring in the Google Cloud Console.
Go to Monitoring - Select Dashboards > Create Dashboard.
- Click on Add Chart.
- Give the chart a title.
- Select metrics and filters. For metrics, the resource type is
Google Cloud TCP Load Balancer (Internal) Rule (
internal_tcp_lb_rule
) or Google Cloud UDP Load Balancer (Internal) Rule (internal_udp_lb_rule
). - Click Save.
Metrics for internal TCP/UDP load balancers
The following metrics for internal TCP/UDP load balancers are reported into Monitoring.
Metric | Description |
---|---|
Inbound Throughput | The number of bytes sent towards internal TCP/UDP load balancer forwarding rules, as received by the backends. |
Inbound Packets | The number of packets sent towards internal TCP/UDP load balancer forwarding rules, as received by the backends. |
Outbound Throughput | The number of bytes sent by internal load balanced backends on connections bound to forwarding rule IPs. |
Outbound Packets | The number of packets sent by internal load balanced backends on connections bound to forwarding rule IPs. |
Latency(*) | A by packets distribution of the RTT measured for bundles of packets over each internal load balanced connection. Typically reduced to 95th-%tile in Monitoring views. |
(*) Available only for TCP traffic.
Filtering dimensions for internal TCP/UDP load balancer metrics
Metrics are aggregated for each internal TCP/UDP load balancer. Metrics can be further broken down by the following dimensions:
Property | Description |
---|---|
INSTANCE GROUP | The name of the instance group that received the connection. |
BACKEND SCOPE | The scope (region or zone) of the instance group that received the connection. |
BACKEND ZONE | If the instance group was a zonal instance group, the zone of the instance group that served the connection. |
CLIENT NETWORK | The network from which the instance that connected to internal load balancing sends traffic. |
CLIENT SUBNETWORK | The subnetwork from which the instance that connected to internal load balancing sends traffic. |
CLIENT ZONE | The Google Cloud zone of the instance that connected to the internal TCP/UDP load balancer's forwarding rule. |
FORWARDING RULE | The name of the forwarding rule used by the instance to connect to the internal TCP/UDP load balancer. |
Metric reporting frequency and retention
Metrics for the internal TCP/UDP load balancers are exported to Monitoring in 1-minute granularity batches. Monitoring data is retained for six (6) weeks. The dashboard provides data analysis in default intervals of 1H (one hour), 6H (six hours), 1D (one day), 1W (one week), and 6W (six weeks). You can manually request analysis in any interval from 6W to 1 minute.
What's next
- See Internal TCP/UDP Load Balancing Concepts for important fundamentals.
- See Failover concepts for Internal TCP/UDP Load Balancing for important information about failover.
- See Internal Load Balancing and DNS Names for available DNS name options your load balancer can use.
- See Setting Up Internal TCP/UDP Load Balancing for an example internal TCP/UDP load balancer configuration.
- See Configuring failover for Internal TCP/UDP Load Balancing for configuration steps and an example internal TCP/UDP load balancer failover configuration.
- See Internal TCP/UDP Load Balancing and connected networks for information about accessing internal load balancers from peer networks connected to your VPC network.
- See Troubleshooting Internal TCP/UDP Load Balancing for information about how to troubleshoot issues with your internal TCP/UDP load balancer.