2018-10-09 09:57:26 +00:00
|
|
|
{
|
|
|
|
"admin": {
|
|
|
|
"access_log_path": "/dev/null",
|
|
|
|
"address": {
|
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 19000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"node": {
|
|
|
|
"cluster": "test-proxy",
|
2020-01-24 15:04:58 +00:00
|
|
|
"id": "test-proxy",
|
|
|
|
"metadata": {
|
|
|
|
"namespace": "default"
|
|
|
|
}
|
2018-10-09 09:57:26 +00:00
|
|
|
},
|
|
|
|
"static_resources": {
|
|
|
|
"clusters": [
|
|
|
|
{
|
|
|
|
"name": "local_agent",
|
|
|
|
"connect_timeout": "1s",
|
|
|
|
"type": "STATIC",
|
|
|
|
"http2_protocol_options": {},
|
2019-08-16 14:30:17 +00:00
|
|
|
"hosts": [
|
|
|
|
{
|
2018-10-09 09:57:26 +00:00
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 8502
|
|
|
|
}
|
2019-08-16 14:30:17 +00:00
|
|
|
}
|
|
|
|
]
|
2018-10-09 09:57:26 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-04-29 16:27:57 +00:00
|
|
|
"stats_config": {
|
2019-08-16 14:30:17 +00:00
|
|
|
"stats_tags": [
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:([^.]+)~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.custom_hash"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:([^.]+)\\.)?[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.service_subset"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?([^.]+)\\.[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.service"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.([^.]+)\\.[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.namespace"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.([^.]+)\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.datacenter"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.([^.]+)\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.routing_type"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.([^.]+)\\.consul\\.)",
|
|
|
|
"tag_name": "consul.trust_domain"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+)\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.target"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.[^.]+)\\.consul\\.)",
|
|
|
|
"tag_name": "consul.full_target"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag_name": "local_cluster",
|
|
|
|
"fixed_value": "test-proxy"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"use_all_default_tags": true
|
|
|
|
},
|
2018-10-09 09:57:26 +00:00
|
|
|
"dynamic_resources": {
|
2019-08-16 14:30:17 +00:00
|
|
|
"lds_config": {
|
|
|
|
"ads": {}
|
|
|
|
},
|
|
|
|
"cds_config": {
|
|
|
|
"ads": {}
|
|
|
|
},
|
2018-10-09 09:57:26 +00:00
|
|
|
"ads_config": {
|
|
|
|
"api_type": "GRPC",
|
|
|
|
"grpc_services": {
|
|
|
|
"initial_metadata": [
|
|
|
|
{
|
|
|
|
"key": "x-consul-token",
|
|
|
|
"value": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"envoy_grpc": {
|
|
|
|
"cluster_name": "local_agent"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|