2022-06-17 00:18:37 +00:00
|
|
|
{
|
|
|
|
"admin": {
|
2023-12-14 20:08:53 +00:00
|
|
|
"access_log": [
|
|
|
|
{
|
|
|
|
"name": "envoy.access_loggers.file",
|
|
|
|
"typed_config": {
|
|
|
|
"@type": "type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog",
|
|
|
|
"path": "/dev/null"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-06-17 00:18:37 +00:00
|
|
|
"address": {
|
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 19000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"node": {
|
|
|
|
"cluster": "test",
|
|
|
|
"id": "test-proxy",
|
|
|
|
"metadata": {
|
|
|
|
"namespace": "default",
|
|
|
|
"partition": "default"
|
|
|
|
}
|
|
|
|
},
|
2022-06-29 15:29:54 +00:00
|
|
|
"layered_runtime": {
|
|
|
|
"layers": [
|
|
|
|
{
|
|
|
|
"name": "base",
|
|
|
|
"static_layer": {
|
|
|
|
"re2.max_program_size.error_level": 1048576
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-06-17 00:18:37 +00:00
|
|
|
"static_resources": {
|
|
|
|
"clusters": [
|
|
|
|
{
|
|
|
|
"name": "local_agent",
|
|
|
|
"ignore_health_on_host_removal": false,
|
|
|
|
"connect_timeout": "1s",
|
|
|
|
"type": "STATIC",
|
2023-12-14 20:08:53 +00:00
|
|
|
"typed_extension_protocol_options": {
|
|
|
|
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
|
|
|
|
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
|
|
|
|
"explicit_http_config": {
|
|
|
|
"http2_protocol_options": {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-06-17 00:18:37 +00:00
|
|
|
"loadAssignment": {
|
|
|
|
"clusterName": "local_agent",
|
|
|
|
"endpoints": [
|
|
|
|
{
|
|
|
|
"lbEndpoints": [
|
|
|
|
{
|
|
|
|
"endpoint": {
|
|
|
|
"address": {
|
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 8502
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "prometheus_backend",
|
|
|
|
"ignore_health_on_host_removal": false,
|
|
|
|
"connect_timeout": "5s",
|
|
|
|
"type": "STATIC",
|
|
|
|
"http_protocol_options": {},
|
|
|
|
"loadAssignment": {
|
|
|
|
"clusterName": "prometheus_backend",
|
|
|
|
"endpoints": [
|
|
|
|
{
|
|
|
|
"lbEndpoints": [
|
|
|
|
{
|
|
|
|
"endpoint": {
|
|
|
|
"address": {
|
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 20100
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"listeners": [
|
|
|
|
{
|
|
|
|
"name": "envoy_prometheus_metrics_listener",
|
|
|
|
"address": {
|
|
|
|
"socket_address": {
|
|
|
|
"address": "0.0.0.0",
|
|
|
|
"port_value": 9000
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"filter_chains": [
|
|
|
|
{
|
|
|
|
"filters": [
|
|
|
|
{
|
|
|
|
"name": "envoy.filters.network.http_connection_manager",
|
|
|
|
"typedConfig": {
|
|
|
|
"@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
|
|
|
|
"stat_prefix": "envoy_prometheus_metrics",
|
|
|
|
"codec_type": "HTTP1",
|
|
|
|
"route_config": {
|
|
|
|
"name": "self_admin_route",
|
|
|
|
"virtual_hosts": [
|
|
|
|
{
|
|
|
|
"name": "self_admin",
|
|
|
|
"domains": [
|
|
|
|
"*"
|
|
|
|
],
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": {
|
|
|
|
"path": "/scrape-path"
|
|
|
|
},
|
|
|
|
"route": {
|
|
|
|
"cluster": "prometheus_backend",
|
|
|
|
"prefix_rewrite": "/stats/prometheus"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"match": {
|
|
|
|
"prefix": "/"
|
|
|
|
},
|
|
|
|
"direct_response": {
|
|
|
|
"status": 404
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"http_filters": [
|
|
|
|
{
|
|
|
|
"name": "envoy.filters.http.router",
|
|
|
|
"typedConfig": {
|
|
|
|
"@type": "type.googleapis.com/envoy.extensions.filters.http.router.v3.Router"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"transportSocket": {
|
|
|
|
"name": "tls",
|
|
|
|
"typedConfig": {
|
|
|
|
"@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext",
|
|
|
|
"commonTlsContext": {
|
|
|
|
"tlsCertificateSdsSecretConfigs": [
|
|
|
|
{
|
|
|
|
"name": "prometheus_cert"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"validationContextSdsSecretConfig": {
|
2022-07-06 16:53:31 +00:00
|
|
|
"name": "prometheus_validation_context"
|
2022-06-17 00:18:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"secrets": [
|
|
|
|
{
|
|
|
|
"name": "prometheus_cert",
|
|
|
|
"tlsCertificate": {
|
|
|
|
"certificateChain": {
|
|
|
|
"filename": "../../../test/key/ourdomain_server.cer"
|
|
|
|
},
|
|
|
|
"privateKey": {
|
|
|
|
"filename": "../../../test/key/ourdomain_server.key"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "prometheus_validation_context",
|
|
|
|
"validationContext": {
|
|
|
|
"trustedCa": {
|
|
|
|
"filename": "../../../test/key/ourdomain.cer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"stats_config": {
|
|
|
|
"stats_tags": [
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:([^.]+)~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.destination.custom_hash"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:([^.]+)\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.destination.service_subset"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?([^.]+)\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.destination.service"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.([^.]+)\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.destination.namespace"
|
|
|
|
},
|
|
|
|
{
|
2022-07-25 17:49:00 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:([^.]+)\\.)?[^.]+\\.internal[^.]*\\.[^.]+\\.consul\\.)",
|
2022-06-17 00:18:37 +00:00
|
|
|
"tag_name": "consul.destination.partition"
|
|
|
|
},
|
|
|
|
{
|
2022-07-25 17:49:00 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?([^.]+)\\.internal[^.]*\\.[^.]+\\.consul\\.)",
|
2022-06-17 00:18:37 +00:00
|
|
|
"tag_name": "consul.destination.datacenter"
|
|
|
|
},
|
2022-07-25 17:49:00 +00:00
|
|
|
{
|
|
|
|
"regex": "^cluster\\.([^.]+\\.(?:[^.]+\\.)?([^.]+)\\.external\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.destination.peer"
|
|
|
|
},
|
2022-06-17 00:18:37 +00:00
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.([^.]+)\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.destination.routing_type"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.([^.]+)\\.consul\\.)",
|
|
|
|
"tag_name": "consul.destination.trust_domain"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(?:passthrough~)?(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+)\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.destination.target"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(?:passthrough~)?(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+)\\.consul\\.)",
|
|
|
|
"tag_name": "consul.destination.full_target"
|
|
|
|
},
|
|
|
|
{
|
2022-07-25 17:49:00 +00:00
|
|
|
"regex": "^(?:tcp|http)\\.upstream(?:_peered)?\\.(([^.]+)(?:\\.[^.]+)?(?:\\.[^.]+)?\\.[^.]+\\.)",
|
2022-06-17 00:18:37 +00:00
|
|
|
"tag_name": "consul.upstream.service"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^(?:tcp|http)\\.upstream\\.([^.]+(?:\\.[^.]+)?(?:\\.[^.]+)?\\.([^.]+)\\.)",
|
|
|
|
"tag_name": "consul.upstream.datacenter"
|
|
|
|
},
|
|
|
|
{
|
2022-07-25 17:49:00 +00:00
|
|
|
"regex": "^(?:tcp|http)\\.upstream_peered\\.([^.]+(?:\\.[^.]+)?\\.([^.]+)\\.)",
|
|
|
|
"tag_name": "consul.upstream.peer"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^(?:tcp|http)\\.upstream(?:_peered)?\\.([^.]+(?:\\.([^.]+))?(?:\\.[^.]+)?\\.[^.]+\\.)",
|
2022-06-17 00:18:37 +00:00
|
|
|
"tag_name": "consul.upstream.namespace"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^(?:tcp|http)\\.upstream\\.([^.]+(?:\\.[^.]+)?(?:\\.([^.]+))?\\.[^.]+\\.)",
|
|
|
|
"tag_name": "consul.upstream.partition"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
{
|
2022-07-25 17:49:00 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?([^.]+)\\.internal[^.]*\\.[^.]+\\.consul\\.)",
|
2022-06-17 00:18:37 +00:00
|
|
|
"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"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag_name": "consul.source.service",
|
|
|
|
"fixed_value": "test"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag_name": "consul.source.namespace",
|
|
|
|
"fixed_value": "default"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag_name": "consul.source.partition",
|
|
|
|
"fixed_value": "default"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag_name": "consul.source.datacenter",
|
|
|
|
"fixed_value": "dc1"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"use_all_default_tags": true
|
|
|
|
},
|
|
|
|
"dynamic_resources": {
|
|
|
|
"lds_config": {
|
|
|
|
"ads": {},
|
2023-07-10 21:08:06 +00:00
|
|
|
"initial_fetch_timeout": "0s",
|
2022-06-17 00:18:37 +00:00
|
|
|
"resource_api_version": "V3"
|
|
|
|
},
|
|
|
|
"cds_config": {
|
|
|
|
"ads": {},
|
2023-07-10 21:08:06 +00:00
|
|
|
"initial_fetch_timeout": "0s",
|
2022-06-17 00:18:37 +00:00
|
|
|
"resource_api_version": "V3"
|
|
|
|
},
|
|
|
|
"ads_config": {
|
|
|
|
"api_type": "DELTA_GRPC",
|
|
|
|
"transport_api_version": "V3",
|
|
|
|
"grpc_services": {
|
|
|
|
"initial_metadata": [
|
|
|
|
{
|
|
|
|
"key": "x-consul-token",
|
|
|
|
"value": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"envoy_grpc": {
|
|
|
|
"cluster_name": "local_agent"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|