91df06098c
Since generated envoy clusters all are named using (mostly) SNI syntax we can have envoy read the various fields out of that structure and emit it as stats labels to the various telemetry backends. I changed the delimiter for the 'customization hash' from ':' to '~' because ':' is always reencoded by envoy as '_' when generating metrics keys.
30 lines
687 B
Plaintext
30 lines
687 B
Plaintext
{
|
|
"versionInfo": "00000001",
|
|
"resources": [
|
|
{
|
|
"@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration",
|
|
"name": "db",
|
|
"virtualHosts": [
|
|
{
|
|
"name": "db",
|
|
"domains": [
|
|
"*"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": {
|
|
"prefix": "/"
|
|
},
|
|
"route": {
|
|
"cluster": "a236e964~db.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"validateClusters": true
|
|
}
|
|
],
|
|
"typeUrl": "type.googleapis.com/envoy.api.v2.RouteConfiguration",
|
|
"nonce": "00000001"
|
|
} |