Werk #15460: agent_azure: Fix an error when collecting metrics for Express Route vNet Gateway

Component Agent bakery
Title agent_azure: Fix an error when collecting metrics for Express Route vNet Gateway
Date Apr 4, 2023
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.1.0p27 2.2.0b4 2.3.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

Previously, the Azure agent would show an error when collecting metrics for the Express Route vNet Gateway:

cmk.special_agents.agent_azure.ApiError: Failed to find metric configuration for provider: Microsoft.Network,
resource Type: virtualNetworkGateways, metric: P2SConnectionCount, Valid metrics: ExpressRouteGatewayPacketsPerSecond,
ExpressRouteGatewayBitsPerSecond, ...

The VNet Gateway service wasn't affected by this. Now, the error gets handled by the Azure agent plugin.

To the list of all Werks