From b849def673f5047eba318d42f10d65fbb6b69ab5 Mon Sep 17 00:00:00 2001 From: Devin Carr Date: Fri, 24 Jun 2022 09:46:22 -0700 Subject: [PATCH] TUN-6460: Rename metric label location to edge_location For Google's managed prometheus, it seems they reserved certain labels for their internal service regions/locations. This causes customers to run into issues using our metrics since our metric: `cloudflared_tunnel_server_locations` has a `location` label. Renaming this to `edge_location` should unblock the conflict and usage. --- connection/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection/metrics.go b/connection/metrics.go index a171f1a4..385708db 100644 --- a/connection/metrics.go +++ b/connection/metrics.go @@ -367,7 +367,7 @@ func initTunnelMetrics() *tunnelMetrics { Name: "server_locations", Help: "Where each tunnel is connected to. 1 means current location, 0 means previous locations.", }, - []string{"connection_id", "location"}, + []string{"connection_id", "edge_location"}, ) prometheus.MustRegister(serverLocations)