mirror of https://github.com/status-im/consul.git
NET-6319 - L7 routes have statePrefix of upstream. and should have a full path (#19473)
This commit is contained in:
parent
2bc0bc30b9
commit
d94d316204
|
@ -17,7 +17,7 @@
|
|||
"name": "envoy.filters.network.http_connection_manager",
|
||||
"typedConfig": {
|
||||
"@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
|
||||
"statPrefix": "upstream.",
|
||||
"statPrefix": "upstream.http.api-1.default.default.dc1",
|
||||
"rds": {
|
||||
"configSource": {
|
||||
"ads": {},
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
"name": "envoy.filters.network.http_connection_manager",
|
||||
"typedConfig": {
|
||||
"@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
|
||||
"statPrefix": "upstream.",
|
||||
"statPrefix": "upstream.http.api-app.default.default.dc1",
|
||||
"rds": {
|
||||
"configSource": {
|
||||
"ads": {},
|
||||
|
@ -140,7 +140,7 @@
|
|||
"name": "envoy.filters.network.http_connection_manager",
|
||||
"typedConfig": {
|
||||
"@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
|
||||
"statPrefix": "upstream.",
|
||||
"statPrefix": "upstream.http.api-app2.default.default.dc1",
|
||||
"rds": {
|
||||
"configSource": {
|
||||
"ads": {},
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
"name": "envoy.filters.network.http_connection_manager",
|
||||
"typedConfig": {
|
||||
"@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
|
||||
"statPrefix": "upstream.",
|
||||
"statPrefix": "upstream.http.api-app.default.default.dc1",
|
||||
"rds": {
|
||||
"configSource": {
|
||||
"ads": {},
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
"name": "envoy.filters.network.http_connection_manager",
|
||||
"typedConfig": {
|
||||
"@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
|
||||
"statPrefix": "upstream.",
|
||||
"statPrefix": "upstream.http.api-app.default.default.dc1",
|
||||
"rds": {
|
||||
"configSource": {
|
||||
"ads": {},
|
||||
|
|
|
@ -248,7 +248,7 @@ func (b *Builder) buildDestination(
|
|||
panic(fmt.Sprintf("it should not be possible to have a tcp protocol here: %v", effectiveProtocol))
|
||||
}
|
||||
|
||||
rb := lb.addL7Router(routeName, "", effectiveProtocol)
|
||||
rb := lb.addL7Router(routeName, statPrefix, effectiveProtocol)
|
||||
if destination.Explicit == nil {
|
||||
rb.addIPAndPortMatch(destination.VirtualIPs, virtualPortNumber)
|
||||
}
|
||||
|
@ -372,7 +372,7 @@ func (b *ListenerBuilder) addL4RouterForDirect(clusterName, statPrefix string) *
|
|||
router := &pbproxystate.Router{}
|
||||
|
||||
if statPrefix == "" {
|
||||
statPrefix = "upstream."
|
||||
statPrefix = fmt.Sprintf("upstream.%s", clusterName)
|
||||
}
|
||||
|
||||
router.Destination = &pbproxystate.Router_L4{
|
||||
|
|
|
@ -234,7 +234,7 @@
|
|||
"route": {
|
||||
"name": "default/local/default/api-1:http:1.1.1.1:1234"
|
||||
},
|
||||
"statPrefix": "upstream."
|
||||
"statPrefix": "upstream.http.api-1.default.default.dc1"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
@ -257,7 +257,7 @@
|
|||
"route": {
|
||||
"name": "default/local/default/api-app:http"
|
||||
},
|
||||
"statPrefix": "upstream."
|
||||
"statPrefix": "upstream.http.api-app.default.default.dc1"
|
||||
},
|
||||
"match": {
|
||||
"destinationPort": 8080,
|
||||
|
@ -274,7 +274,7 @@
|
|||
"route": {
|
||||
"name": "default/local/default/api-app2:http"
|
||||
},
|
||||
"statPrefix": "upstream."
|
||||
"statPrefix": "upstream.http.api-app2.default.default.dc1"
|
||||
},
|
||||
"match": {
|
||||
"destinationPort": 8080,
|
||||
|
|
|
@ -152,7 +152,7 @@
|
|||
"route": {
|
||||
"name": "default/local/default/api-app:http"
|
||||
},
|
||||
"statPrefix": "upstream."
|
||||
"statPrefix": "upstream.http.api-app.default.default.dc1"
|
||||
},
|
||||
"match": {
|
||||
"destinationPort": 8080,
|
||||
|
|
|
@ -152,7 +152,7 @@
|
|||
"route": {
|
||||
"name": "default/local/default/api-app:http"
|
||||
},
|
||||
"statPrefix": "upstream."
|
||||
"statPrefix": "upstream.http.api-app.default.default.dc1"
|
||||
},
|
||||
"match": {
|
||||
"destinationPort": 8080,
|
||||
|
|
|
@ -285,7 +285,7 @@
|
|||
"route": {
|
||||
"name": "default/local/default/api-1:http:1.1.1.1:1234"
|
||||
},
|
||||
"statPrefix": "upstream."
|
||||
"statPrefix": "upstream.http.api-1.default.default.dc1"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
@ -330,7 +330,7 @@
|
|||
"route": {
|
||||
"name": "default/local/default/api-app:http"
|
||||
},
|
||||
"statPrefix": "upstream."
|
||||
"statPrefix": "upstream.http.api-app.default.default.dc1"
|
||||
},
|
||||
"match": {
|
||||
"destinationPort": 8080,
|
||||
|
@ -347,7 +347,7 @@
|
|||
"route": {
|
||||
"name": "default/local/default/api-app2:http"
|
||||
},
|
||||
"statPrefix": "upstream."
|
||||
"statPrefix": "upstream.http.api-app2.default.default.dc1"
|
||||
},
|
||||
"match": {
|
||||
"destinationPort": 8080,
|
||||
|
|
|
@ -192,7 +192,7 @@
|
|||
"route": {
|
||||
"name": "default/local/default/api-app:http"
|
||||
},
|
||||
"statPrefix": "upstream."
|
||||
"statPrefix": "upstream.http.api-app.default.default.dc1"
|
||||
},
|
||||
"match": {
|
||||
"destinationPort": 8080,
|
||||
|
|
|
@ -192,7 +192,7 @@
|
|||
"route": {
|
||||
"name": "default/local/default/api-app:http"
|
||||
},
|
||||
"statPrefix": "upstream."
|
||||
"statPrefix": "upstream.http.api-app.default.default.dc1"
|
||||
},
|
||||
"match": {
|
||||
"destinationPort": 8080,
|
||||
|
|
Loading…
Reference in New Issue