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.
This commit is contained in:
parent
dd540af695
commit
b849def673
|
@ -367,7 +367,7 @@ func initTunnelMetrics() *tunnelMetrics {
|
||||||
Name: "server_locations",
|
Name: "server_locations",
|
||||||
Help: "Where each tunnel is connected to. 1 means current location, 0 means previous 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)
|
prometheus.MustRegister(serverLocations)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue