Google Cloud 控制台中会显示以下消息: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.
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-03。"],[],[],null,["# Identify router maintenance events\n==================================\n\nCloud Router undergoes periodic maintenance. For more information, see\n[Software\nmaintenance](/network-connectivity/docs/router/concepts/how-cloud-router-works#maintenance).\n\nIdentify events using the *maintenance of router task* message\n--------------------------------------------------------------\n\nIn the Google Cloud console, the following message appears:\n**Maintenance of router task: BGP sessions will\nrestart. Routes are preserved for the duration of the configured timers. These\nare normal events, and no data loss is expected to occur.**\n\nThis message indicates that a Cloud Router maintenance event occurred\nduring the issue or time period.\n\nIdentify events using a log-based metric\n----------------------------------------\n\n### Console\n\n1. In the Google Cloud console, go to the **Cloud Routers** page.\n\n [Go to Cloud Routers](https://console.cloud.google.com/hybrid/routers/list)\n2. Find the Cloud Router from the list of Cloud Routers.\n\n3. In the **Logs** column, click **View**.\n\n The default query appears in the query builder.\n4. From the default query, note the value of the router ID of the\n `resource.labels.router_id` variable.\n\n5. Build a new query by using the `resource.labels.router_id` value from the\n previous query as follows:\n\n ```\n resource.labels.router_id=ROUTER_ID\n textPayload=~\"Maintenance of router task: BGP sessions will restart.\"\n ```\n6. Create an alert with a notification of a maintenance event by using the\n previous query.\n\n This notification appears the first time the router is\n created and subsequently during every maintenance event.\n\n For more information about creating an alert,\n see [Create an alert policy on a counter metric](/logging/docs/logs-based-metrics/charts-and-alerts#alert-on-lbm).\n\nVerify connectivity between the on-premises router and the Cloud Router\n-----------------------------------------------------------------------\n\nUse the following methods to verify connectivity:\n\n- For Cloud Router used with Cloud VPN, set up a dashboard\n for `network/received_packets_count` and `network/sent_packets_count` to\n monitor any loss in connectivity. For more information, see [View VPN\n metrics](/network-connectivity/docs/vpn/how-to/viewing-logs-metrics#metrics).\n\n- For Cloud Router used with Cloud Interconnect, set up a\n dashboard for `network/attachment/sent_packets_count` and\n `network/attachment/received_packets_count` to monitor the connectivity of\n VLAN attachments. For more information, see [Interconnect\n metrics](/monitoring/api/metrics_gcp_i_o#gcp-interconnect).\n\nDuring Cloud Router maintenance events, metrics for each resource\naren't expected to show any gap of connectivity."]]