hashicorp / consul

Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
https://www.consul.io
Other
28.44k stars 4.43k forks source link

Missing labels/tags on envoy metrics with consul connect and prometheus #8831

Open ElfoLiNk opened 4 years ago

ElfoLiNk commented 4 years ago

Overview of the Issue

Similar to https://github.com/hashicorp/consul/issues/7755

I'm using the dashboard from https://gist.github.com/rboyer/f8a3a35feec3a27010192bda5796769e ( FYI @rboyer ) i fixed the issue regarding the label response_code_class renamed to envoy_response_code_class but still some chart are empty:

image

Outbound SUCCESS RATE query:

sum(irate(envoy_cluster_upstream_rq_xx{envoy_response_code_class!="5",local_cluster="$service",consul_target!=""}[30s])) by (local_cluster, consul_target) / sum(irate(envoy_cluster_upstream_rq_xx{local_cluster="$service",consul_target!=""}[30s])) by (local_cluster, consul_target)

envoy_cluster_upstream_rq_xx{envoy_response_code_class!="5",local_cluster="opentraced-app-b"} it's missing consul_target label:

envoy_cluster_upstream_rq_xx{envoy_cluster_name="local_agent",envoy_response_code_class="2",instance="10.128.0.10:21566",job="opentraced-app-b",local_cluster="opentraced-app-b"} | 315
envoy_cluster_upstream_rq_xx{envoy_cluster_name="local_app",envoy_response_code_class="2",instance="10.128.0.10:21566",job="opentraced-app-b",local_cluster="opentraced-app-b"} | 26037
envoy_cluster_upstream_rq_xx{envoy_cluster_name="local_app",envoy_response_code_class="4",instance="10.128.0.10:21566",job="opentraced-app-b",local_cluster="opentraced-app-b"} | 1
envoy_cluster_upstream_rq_xx{envoy_cluster_name="self_admin",envoy_response_code_class="2",instance="10.128.0.10:21566",job="opentraced-app-b",local_cluster="opentraced-app-b"} | 444

I'm using Consul 1.8.4 and Envoy 1.14.2

Reproduction Steps

Enable prometheus metrics in proxy configuration with:

      protocol = "http"
      envoy_prometheus_bind_addr = "0.0.0.0:9102"

Consul info for both Client and Server

Client info ``` agent: check_monitors = 0 check_ttls = 1 checks = 14 services = 14 build: prerelease = revision = 12b16df3 version = 1.8.4 consul: acl = enabled known_servers = 3 server = false runtime: arch = amd64 cpu_count = 2 goroutines = 186 max_procs = 2 os = linux version = go1.14.6 serf_lan: coordinate_resets = 0 encrypted = false event_queue = 0 event_time = 4 failed = 0 health_score = 0 intent_queue = 0 left = 0 member_time = 12489 members = 7 query_queue = 0 query_time = 1 ```
Server info ``` agent: check_monitors = 0 check_ttls = 0 checks = 4 services = 5 build: prerelease = revision = 12b16df3 version = 1.8.4 consul: acl = enabled bootstrap = false known_datacenters = 1 leader = true leader_addr = 10.128.0.5:8300 server = true raft: applied_index = 282249 commit_index = 282249 fsm_pending = 0 last_contact = 0 last_log_index = 282249 last_log_term = 37 last_snapshot_index = 279053 last_snapshot_term = 37 latest_configuration = [{Suffrage:Voter ID:ab4613ec-d7bf-8707-5868-941bef0aebee Address:10.128.0.5:8300} {Suffrage:Voter ID:830da04a-c426-eba3-e20d-0d525498aab0 Address:10.128.0.3:8300} {Suffrage:Voter ID:88d0792c-675d-8df8-5fa2-cd327643104b Address:10.128.0.6:8300}] latest_configuration_index = 0 num_peers = 2 protocol_version = 3 protocol_version_max = 3 protocol_version_min = 0 snapshot_version_max = 1 snapshot_version_min = 0 state = Leader term = 37 runtime: arch = amd64 cpu_count = 2 goroutines = 277 max_procs = 2 os = linux version = go1.14.6 serf_lan: coordinate_resets = 0 encrypted = false event_queue = 0 event_time = 4 failed = 0 health_score = 0 intent_queue = 0 left = 1 member_time = 12486 members = 7 query_queue = 0 query_time = 1 serf_wan: coordinate_resets = 0 encrypted = false event_queue = 0 event_time = 1 failed = 0 health_score = 0 intent_queue = 0 left = 0 member_time = 4723 members = 3 query_queue = 0 query_time = 1 ```

Operating system and Environment details

OS Centos 7 Consul 1.8.4 Nomad 0.12.5 Enovy 1.14.2

Log Fragments

Envoy Config Dump ``` { "configs": [ { "@type": "type.googleapis.com/envoy.admin.v3.BootstrapConfigDump", "bootstrap": { "node": { "id": "_nomad-task-6b11cfda-f908-ddc9-16be-398617980e47-group-java-springboot-b-opentraced-app-b-http-sidecar-proxy", "cluster": "opentraced-app-b", "metadata": { "namespace": "default", "envoy_version": "1.14.2" }, "hidden_envoy_deprecated_build_version": "1a0363c885c2dbb1e48b03847dbd706d1ba43eba/1.14.2/clean-getenvoy-fbeeb15-envoy/RELEASE/BoringSSL", "user_agent_name": "envoy", "user_agent_build_version": { "version": { "major_number": 1, "minor_number": 14, "patch": 2 }, "metadata": { "build.type": "RELEASE", "ssl.version": "BoringSSL", "revision.status": "clean-getenvoy-fbeeb15-envoy", "revision.sha": "1a0363c885c2dbb1e48b03847dbd706d1ba43eba" } }, "extensions": [ { "name": "envoy.grpc_credentials.aws_iam", "category": "envoy.grpc_credentials" }, { "name": "envoy.grpc_credentials.default", "category": "envoy.grpc_credentials" }, { "name": "envoy.grpc_credentials.file_based_metadata", "category": "envoy.grpc_credentials" }, { "name": "envoy.retry_host_predicates.omit_canary_hosts", "category": "envoy.retry_host_predicates" }, { "name": "envoy.retry_host_predicates.omit_host_metadata", "category": "envoy.retry_host_predicates" }, { "name": "envoy.retry_host_predicates.previous_hosts", "category": "envoy.retry_host_predicates" }, { "name": "raw_udp_listener", "category": "envoy.udp_listeners" }, { "name": "envoy.ip", "category": "envoy.resolvers" }, { "name": "envoy.filters.dubbo.router", "category": "envoy.dubbo_proxy.filters" }, { "name": "envoy.retry_priorities.previous_priorities", "category": "envoy.retry_priorities" }, { "name": "envoy.filters.udp.dns_filter", "category": "envoy.filters.udp_listener" }, { "name": "envoy.filters.udp_listener.udp_proxy", "category": "envoy.filters.udp_listener" }, { "name": "auto", "category": "envoy.thrift_proxy.transports" }, { "name": "framed", "category": "envoy.thrift_proxy.transports" }, { "name": "header", "category": "envoy.thrift_proxy.transports" }, { "name": "unframed", "category": "envoy.thrift_proxy.transports" }, { "name": "envoy.client_ssl_auth", "category": "envoy.filters.network" }, { "name": "envoy.echo", "category": "envoy.filters.network" }, { "name": "envoy.ext_authz", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.client_ssl_auth", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.direct_response", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.dubbo_proxy", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.echo", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.ext_authz", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.http_connection_manager", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.kafka_broker", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.local_ratelimit", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.mongo_proxy", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.mysql_proxy", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.ratelimit", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.rbac", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.redis_proxy", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.sni_cluster", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.tcp_proxy", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.thrift_proxy", "category": "envoy.filters.network" }, { "name": "envoy.filters.network.zookeeper_proxy", "category": "envoy.filters.network" }, { "name": "envoy.http_connection_manager", "category": "envoy.filters.network" }, { "name": "envoy.mongo_proxy", "category": "envoy.filters.network" }, { "name": "envoy.ratelimit", "category": "envoy.filters.network" }, { "name": "envoy.redis_proxy", "category": "envoy.filters.network" }, { "name": "envoy.tcp_proxy", "category": "envoy.filters.network" }, { "name": "envoy.dog_statsd", "category": "envoy.stats_sinks" }, { "name": "envoy.metrics_service", "category": "envoy.stats_sinks" }, { "name": "envoy.stat_sinks.dog_statsd", "category": "envoy.stats_sinks" }, { "name": "envoy.stat_sinks.hystrix", "category": "envoy.stats_sinks" }, { "name": "envoy.stat_sinks.metrics_service", "category": "envoy.stats_sinks" }, { "name": "envoy.stat_sinks.statsd", "category": "envoy.stats_sinks" }, { "name": "envoy.statsd", "category": "envoy.stats_sinks" }, { "name": "envoy.transport_sockets.alts", "category": "envoy.transport_sockets.downstream" }, { "name": "envoy.transport_sockets.raw_buffer", "category": "envoy.transport_sockets.downstream" }, { "name": "envoy.transport_sockets.tap", "category": "envoy.transport_sockets.downstream" }, { "name": "envoy.transport_sockets.tls", "category": "envoy.transport_sockets.downstream" }, { "name": "raw_buffer", "category": "envoy.transport_sockets.downstream" }, { "name": "tls", "category": "envoy.transport_sockets.downstream" }, { "name": "envoy.access_loggers.file", "category": "envoy.access_loggers" }, { "name": "envoy.access_loggers.http_grpc", "category": "envoy.access_loggers" }, { "name": "envoy.access_loggers.tcp_grpc", "category": "envoy.access_loggers" }, { "name": "envoy.file_access_log", "category": "envoy.access_loggers" }, { "name": "envoy.http_grpc_access_log", "category": "envoy.access_loggers" }, { "name": "envoy.tcp_grpc_access_log", "category": "envoy.access_loggers" }, { "name": "envoy.filters.listener.http_inspector", "category": "envoy.filters.listener" }, { "name": "envoy.filters.listener.original_dst", "category": "envoy.filters.listener" }, { "name": "envoy.filters.listener.original_src", "category": "envoy.filters.listener" }, { "name": "envoy.filters.listener.proxy_protocol", "category": "envoy.filters.listener" }, { "name": "envoy.filters.listener.tls_inspector", "category": "envoy.filters.listener" }, { "name": "envoy.listener.http_inspector", "category": "envoy.filters.listener" }, { "name": "envoy.listener.original_dst", "category": "envoy.filters.listener" }, { "name": "envoy.listener.original_src", "category": "envoy.filters.listener" }, { "name": "envoy.listener.proxy_protocol", "category": "envoy.filters.listener" }, { "name": "envoy.listener.tls_inspector", "category": "envoy.filters.listener" }, { "name": "envoy.cluster.eds", "category": "envoy.clusters" }, { "name": "envoy.cluster.logical_dns", "category": "envoy.clusters" }, { "name": "envoy.cluster.original_dst", "category": "envoy.clusters" }, { "name": "envoy.cluster.static", "category": "envoy.clusters" }, { "name": "envoy.cluster.strict_dns", "category": "envoy.clusters" }, { "name": "envoy.clusters.aggregate", "category": "envoy.clusters" }, { "name": "envoy.clusters.dynamic_forward_proxy", "category": "envoy.clusters" }, { "name": "envoy.clusters.redis", "category": "envoy.clusters" }, { "name": "envoy.filters.thrift.rate_limit", "category": "envoy.thrift_proxy.filters" }, { "name": "envoy.filters.thrift.router", "category": "envoy.thrift_proxy.filters" }, { "name": "default", "category": "envoy.dubbo_proxy.route_matchers" }, { "name": "auto", "category": "envoy.thrift_proxy.protocols" }, { "name": "binary", "category": "envoy.thrift_proxy.protocols" }, { "name": "binary/non-strict", "category": "envoy.thrift_proxy.protocols" }, { "name": "compact", "category": "envoy.thrift_proxy.protocols" }, { "name": "twitter", "category": "envoy.thrift_proxy.protocols" }, { "name": "envoy.transport_sockets.alts", "category": "envoy.transport_sockets.upstream" }, { "name": "envoy.transport_sockets.raw_buffer", "category": "envoy.transport_sockets.upstream" }, { "name": "envoy.transport_sockets.tap", "category": "envoy.transport_sockets.upstream" }, { "name": "envoy.transport_sockets.tls", "category": "envoy.transport_sockets.upstream" }, { "name": "raw_buffer", "category": "envoy.transport_sockets.upstream" }, { "name": "tls", "category": "envoy.transport_sockets.upstream" }, { "name": "envoy.health_checkers.redis", "category": "envoy.health_checkers" }, { "name": "dubbo.hessian2", "category": "envoy.dubbo_proxy.serializers" }, { "name": "envoy.buffer", "category": "envoy.filters.http" }, { "name": "envoy.cors", "category": "envoy.filters.http" }, { "name": "envoy.csrf", "category": "envoy.filters.http" }, { "name": "envoy.ext_authz", "category": "envoy.filters.http" }, { "name": "envoy.fault", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.adaptive_concurrency", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.aws_lambda", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.aws_request_signing", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.buffer", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.cache", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.cors", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.csrf", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.dynamic_forward_proxy", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.dynamo", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.ext_authz", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.fault", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.grpc_http1_bridge", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.grpc_http1_reverse_bridge", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.grpc_json_transcoder", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.grpc_stats", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.grpc_web", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.gzip", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.header_to_metadata", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.health_check", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.ip_tagging", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.jwt_authn", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.lua", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.on_demand", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.original_src", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.ratelimit", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.rbac", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.router", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.squash", "category": "envoy.filters.http" }, { "name": "envoy.filters.http.tap", "category": "envoy.filters.http" }, { "name": "envoy.grpc_http1_bridge", "category": "envoy.filters.http" }, { "name": "envoy.grpc_json_transcoder", "category": "envoy.filters.http" }, { "name": "envoy.grpc_web", "category": "envoy.filters.http" }, { "name": "envoy.gzip", "category": "envoy.filters.http" }, { "name": "envoy.health_check", "category": "envoy.filters.http" }, { "name": "envoy.http_dynamo_filter", "category": "envoy.filters.http" }, { "name": "envoy.ip_tagging", "category": "envoy.filters.http" }, { "name": "envoy.lua", "category": "envoy.filters.http" }, { "name": "envoy.rate_limit", "category": "envoy.filters.http" }, { "name": "envoy.router", "category": "envoy.filters.http" }, { "name": "envoy.squash", "category": "envoy.filters.http" }, { "name": "envoy.extensions.http.cache.simple", "category": "http_cache_factory" }, { "name": "envoy.dynamic.ot", "category": "envoy.tracers" }, { "name": "envoy.lightstep", "category": "envoy.tracers" }, { "name": "envoy.tracers.datadog", "category": "envoy.tracers" }, { "name": "envoy.tracers.dynamic_ot", "category": "envoy.tracers" }, { "name": "envoy.tracers.lightstep", "category": "envoy.tracers" }, { "name": "envoy.tracers.opencensus", "category": "envoy.tracers" }, { "name": "envoy.tracers.xray", "category": "envoy.tracers" }, { "name": "envoy.tracers.zipkin", "category": "envoy.tracers" }, { "name": "envoy.zipkin", "category": "envoy.tracers" }, { "name": "dubbo", "category": "envoy.dubbo_proxy.protocols" }, { "name": "envoy.resource_monitors.fixed_heap", "category": "envoy.resource_monitors" }, { "name": "envoy.resource_monitors.injected_resource", "category": "envoy.resource_monitors" } ] }, "static_resources": { "listeners": [ { "name": "envoy_prometheus_metrics_listener", "address": { "socket_address": { "address": "0.0.0.0", "port_value": 9102 } }, "filter_chains": [ { "filters": [ { "name": "envoy.http_connection_manager", "hidden_envoy_deprecated_config": { "codec_type": "HTTP1", "http_filters": [ { "name": "envoy.router" } ], "stat_prefix": "envoy_prometheus_metrics", "route_config": { "name": "self_admin_route", "virtual_hosts": [ { "name": "self_admin", "routes": [ { "match": { "path": "/metrics" }, "route": { "prefix_rewrite": "/stats/prometheus", "cluster": "self_admin" } }, { "direct_response": { "status": 404 }, "match": { "prefix": "/" } } ], "domains": [ "*" ] } ] } } } ] } ] } ], "clusters": [ { "name": "local_agent", "type": "STATIC", "connect_timeout": "1s", "hidden_envoy_deprecated_hosts": [ { "pipe": { "path": "alloc/tmp/consul_grpc.sock" } } ], "hidden_envoy_deprecated_tls_context": { "common_tls_context": { "validation_context": { "trusted_ca": { "inline_string": "XXXX" } } } }, "http2_protocol_options": {} }, { "name": "jaeger_9411", "type": "STRICT_DNS", "connect_timeout": "3s", "dns_lookup_family": "V4_ONLY", "load_assignment": { "cluster_name": "jaeger_9411", "endpoints": [ { "lb_endpoints": [ { "endpoint": { "address": { "socket_address": { "address": "10.128.0.4", "port_value": 9411 } } } } ] } ] } }, { "name": "self_admin", "type": "STATIC", "connect_timeout": "5s", "hidden_envoy_deprecated_hosts": [ { "socket_address": { "address": "127.0.0.1", "port_value": 19002 } } ], "http_protocol_options": {} } ] }, "dynamic_resources": { "lds_config": { "ads": {} }, "cds_config": { "ads": {} }, "ads_config": { "api_type": "GRPC", "grpc_services": [ { "envoy_grpc": { "cluster_name": "local_agent" }, "initial_metadata": [ { "key": "x-consul-token", "value": "b4a2ffee-f1fa-f4b4-4056-100629e73c80" } ] } ] } }, "tracing": { "http": { "name": "envoy.tracers.zipkin", "typed_config": { "@type": "type.googleapis.com/envoy.config.trace.v2.ZipkinConfig", "collector_cluster": "jaeger_9411", "collector_endpoint": "/api/v2/spans", "shared_span_context": false, "collector_endpoint_version": "HTTP_JSON" } } }, "admin": { "access_log_path": "/dev/null", "address": { "socket_address": { "address": "127.0.0.1", "port_value": 19002 } } }, "stats_config": { "stats_tags": [ { "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", "regex": "^cluster\\.(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.[^.]+)\\.consul\\.)" }, { "tag_name": "local_cluster", "fixed_value": "opentraced-app-b" } ], "use_all_default_tags": true }, "layered_runtime": { "layers": [ { "name": "static_layer", "static_layer": { "envoy.deprecated_features:envoy.config.trace.v2.ZipkinConfig.HTTP_JSON_V1": true, "envoy.deprecated_features:envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager.Tracing.operation_name": true, "envoy.deprecated_features:envoy.api.v2.Cluster.tls_context": true } } ] } }, "last_updated": "2020-10-06T12:56:02.094Z" }, { "@type": "type.googleapis.com/envoy.admin.v3.ClustersConfigDump", "version_info": "00000021", "static_clusters": [ { "cluster": { "@type": "type.googleapis.com/envoy.api.v2.Cluster", "name": "jaeger_9411", "type": "STRICT_DNS", "connect_timeout": "3s", "dns_lookup_family": "V4_ONLY", "load_assignment": { "cluster_name": "jaeger_9411", "endpoints": [ { "lb_endpoints": [ { "endpoint": { "address": { "socket_address": { "address": "10.128.0.4", "port_value": 9411 } } } } ] } ] } }, "last_updated": "2020-10-06T12:56:02.124Z" }, { "cluster": { "@type": "type.googleapis.com/envoy.api.v2.Cluster", "name": "local_agent", "type": "STATIC", "connect_timeout": "1s", "hosts": [ { "pipe": { "path": "alloc/tmp/consul_grpc.sock" } } ], "tls_context": { "common_tls_context": { "validation_context": { "trusted_ca": { "inline_string": "XXXXX" } } } }, "http2_protocol_options": {} }, "last_updated": "2020-10-06T12:56:02.111Z" }, { "cluster": { "@type": "type.googleapis.com/envoy.api.v2.Cluster", "name": "self_admin", "type": "STATIC", "connect_timeout": "5s", "hosts": [ { "socket_address": { "address": "127.0.0.1", "port_value": 19002 } } ], "http_protocol_options": {} }, "last_updated": "2020-10-06T12:56:02.138Z" } ], "dynamic_active_clusters": [ { "version_info": "00000001", "cluster": { "@type": "type.googleapis.com/envoy.api.v2.Cluster", "name": "local_app", "type": "STATIC", "connect_timeout": "5s", "load_assignment": { "cluster_name": "local_app", "endpoints": [ { "lb_endpoints": [ { "endpoint": { "address": { "socket_address": { "address": "127.0.0.1", "port_value": 29483 } } } } ] } ] } }, "last_updated": "2020-10-06T12:56:02.186Z" }, { "version_info": "00000021", "cluster": { "@type": "type.googleapis.com/envoy.api.v2.Cluster", "name": "opentraced-app.default.gcp-dc.internal.a1b86165-9b98-b8d3-0a0d-2b05e75fbac6.consul", "type": "EDS", "eds_cluster_config": { "eds_config": { "ads": {} } }, "connect_timeout": "5s", "circuit_breakers": {}, "tls_context": { "common_tls_context": { "tls_params": {}, "tls_certificates": [ { "certificate_chain": { "inline_string": "XXXX" }, "private_key": { "inline_string": "[redacted]" } } ], "validation_context": { "trusted_ca": { "inline_string": "XXXX" } } }, "sni": "opentraced-app.default.gcp-dc.internal.a1b86165-9b98-b8d3-0a0d-2b05e75fbac6.consul" }, "outlier_detection": {}, "common_lb_config": { "healthy_panic_threshold": {} }, "alt_stat_name": "opentraced-app.default.gcp-dc.internal.a1b86165-9b98-b8d3-0a0d-2b05e75fbac6.consul" }, "last_updated": "2020-10-06T14:18:07.173Z" } ] }, { "@type": "type.googleapis.com/envoy.admin.v3.ListenersConfigDump", "version_info": "00000021", "static_listeners": [ { "listener": { "@type": "type.googleapis.com/envoy.api.v2.Listener", "name": "envoy_prometheus_metrics_listener", "address": { "socket_address": { "address": "0.0.0.0", "port_value": 9102 } }, "filter_chains": [ { "filters": [ { "name": "envoy.http_connection_manager", "config": { "route_config": { "name": "self_admin_route", "virtual_hosts": [ { "name": "self_admin", "routes": [ { "route": { "prefix_rewrite": "/stats/prometheus", "cluster": "self_admin" }, "match": { "path": "/metrics" } }, { "direct_response": { "status": 404 }, "match": { "prefix": "/" } } ], "domains": [ "*" ] } ] }, "codec_type": "HTTP1", "http_filters": [ { "name": "envoy.router" } ], "stat_prefix": "envoy_prometheus_metrics" } } ] } ] }, "last_updated": "2020-10-06T12:56:02.150Z" } ], "dynamic_listeners": [ { "name": "public_listener:0.0.0.0:22381", "active_state": { "version_info": "00000021", "listener": { "@type": "type.googleapis.com/envoy.api.v2.Listener", "name": "public_listener:0.0.0.0:22381", "address": { "socket_address": { "address": "0.0.0.0", "port_value": 22381 } }, "filter_chains": [ { "tls_context": { "common_tls_context": { "tls_params": {}, "tls_certificates": [ { "certificate_chain": { "inline_string": "XXXXX" }, "private_key": { "inline_string": "[redacted]" } } ], "validation_context": { "trusted_ca": { "inline_string": "XXXX" } } }, "require_client_certificate": true }, "filters": [ { "name": "envoy.ext_authz", "config": { "stat_prefix": "connect_authz", "grpc_service": { "initial_metadata": [ { "value": "b4a2ffee-f1fa-f4b4-4056-100629e73c80", "key": "x-consul-token" } ], "envoy_grpc": { "cluster_name": "local_agent" } } } }, { "name": "envoy.http_connection_manager", "config": { "tracing": { "random_sampling": {} }, "route_config": { "virtual_hosts": [ { "routes": [ { "route": { "cluster": "local_app" }, "match": { "prefix": "/" } } ], "domains": [ "*" ], "name": "public_listener" } ], "name": "public_listener" }, "http_filters": [ { "name": "envoy.router" } ], "stat_prefix": "public_listener_http" } } ] } ] }, "last_updated": "2020-10-06T14:18:07.178Z" }, "draining_state": { "version_info": "00000024", "listener": { "@type": "type.googleapis.com/envoy.api.v2.Listener", "name": "public_listener:0.0.0.0:22381", "address": { "socket_address": { "address": "0.0.0.0", "port_value": 22381 } }, "filter_chains": [ { "tls_context": { "common_tls_context": { "tls_params": {}, "tls_certificates": [ { "certificate_chain": { "inline_string": "XXXXX" }, "private_key": { "inline_string": "[redacted]" } } ], "validation_context": { "trusted_ca": { "inline_string": "XXXXX" } } }, "require_client_certificate": true }, "filters": [ { "name": "envoy.ext_authz", "config": { "grpc_service": { "envoy_grpc": { "cluster_name": "local_agent" }, "initial_metadata": [ { "value": "b4a2ffee-f1fa-f4b4-4056-100629e73c80", "key": "x-consul-token" } ] }, "stat_prefix": "connect_authz" } }, { "name": "envoy.http_connection_manager", "config": { "route_config": { "name": "public_listener", "virtual_hosts": [ { "domains": [ "*" ], "name": "public_listener", "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "tracing": { "random_sampling": {} }, "http_filters": [ { "name": "envoy.router" } ], "stat_prefix": "public_listener_http" } } ] } ] }, "last_updated": "2020-10-06T14:07:57.813Z" } }, { "name": "opentraced-app:127.0.0.1:8080", "active_state": { "version_info": "00000001", "listener": { "@type": "type.googleapis.com/envoy.api.v2.Listener", "name": "opentraced-app:127.0.0.1:8080", "address": { "socket_address": { "address": "127.0.0.1", "port_value": 8080 } }, "filter_chains": [ { "filters": [ { "name": "envoy.tcp_proxy", "config": { "stat_prefix": "upstream_opentraced-app_tcp", "cluster": "opentraced-app.default.gcp-dc.internal.a1b86165-9b98-b8d3-0a0d-2b05e75fbac6.consul" } } ] } ] }, "last_updated": "2020-10-06T12:56:02.238Z" } } ] }, { "@type": "type.googleapis.com/envoy.admin.v3.ScopedRoutesConfigDump" }, { "@type": "type.googleapis.com/envoy.admin.v3.RoutesConfigDump", "static_route_configs": [ { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:17:40.812Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:17:08.846Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:16:56.280Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:16:46.707Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:16:17.994Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:15:52.602Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:15:28.337Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:15:04.034Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:15:01.817Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:15:01.370Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:14:53.074Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:15:13.268Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:14:39.309Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:14:09.545Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:13:56.135Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:13:27.240Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:13:13.157Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:18:07.177Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:12:58.399Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:12:50.097Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:11:59.818Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:11:05.782Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:11:03.007Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:10:53.445Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:10:41.943Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:10:35.901Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:08:48.570Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:08:27.837Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:08:22.576Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:07:57.813Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:08:56.137Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:09:25.312Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:13:17.963Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:09:44.799Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:17:27.961Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:12:21.001Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:11:35.720Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:09:54.092Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "public_listener", "virtual_hosts": [ { "name": "public_listener", "domains": [ "*" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "local_app" } } ] } ] }, "last_updated": "2020-10-06T14:10:09.847Z" }, { "route_config": { "@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration", "name": "self_admin_route", "virtual_hosts": [ { "name": "self_admin", "domains": [ "*" ], "routes": [ { "match": { "path": "/metrics" }, "route": { "cluster": "self_admin", "prefix_rewrite": "/stats/prometheus" } }, { "match": { "prefix": "/" }, "direct_response": { "status": 404 } } ] } ] }, "last_updated": "2020-10-06T12:56:02.149Z" } ] }, { "@type": "type.googleapis.com/envoy.admin.v3.SecretsConfigDump" } ] } ```
jsosulska commented 4 years ago

I'm sorry for the chatty labeler. I have a PR to fix the labeler. I had made an edit to make your envoy config render correctly.