Skip to content

Commit b849def

Browse files
committed
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.
1 parent dd540af commit b849def

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connection/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func initTunnelMetrics() *tunnelMetrics {
367367
Name: "server_locations",
368368
Help: "Where each tunnel is connected to. 1 means current location, 0 means previous locations.",
369369
},
370-
[]string{"connection_id", "location"},
370+
[]string{"connection_id", "edge_location"},
371371
)
372372
prometheus.MustRegister(serverLocations)
373373

0 commit comments

Comments
 (0)