Identify router maintenance events
Cloud Router undergoes periodic maintenance. For more information, see Software maintenance.
Identify events using the maintenance of router task message
In the Google Cloud console, the following message appears: Maintenance of router task: BGP sessions will restart. Routes are preserved for the duration of the configured timers. These are normal events, and no data loss is expected to occur.
This message indicates that a Cloud Router maintenance event occurred during the issue or time period.
Identify events using a log-based metric
Console
In the Google Cloud console, go to the Cloud Routers page.
Find the Cloud Router from the list of Cloud Routers.
In the Logs column, click View.
The default query appears in the query builder.
From the default query, note the value of the router ID of the
resource.labels.router_id
variable.Build a new query by using the
resource.labels.router_id
value from the previous query as follows:resource.labels.router_id=ROUTER_ID textPayload=~"Maintenance of router task: BGP sessions will restart."
Create an alert with a notification of a maintenance event by using the previous query.
This notification appears the first time the router is created and subsequently during every maintenance event.
For more information about creating an alert, see Create an alert policy on a counter metric.
Verify connectivity between the on-premises router and the Cloud Router
Use the following methods to verify connectivity:
For Cloud Router used with Cloud VPN, set up a dashboard for
network/received_packets_count
andnetwork/sent_packets_count
to monitor any loss in connectivity. For more information, see View VPN metrics.For Cloud Router used with Cloud Interconnect, set up a dashboard for
network/attachment/sent_packets_count
andnetwork/attachment/received_packets_count
to monitor the connectivity of VLAN attachments. For more information, see Interconnect metrics.
During Cloud Router maintenance events, metrics for each resource aren't expected to show any gap of connectivity.