consul/agent/xds/testdata/endpoints
Ashvitha f95ffe0355
Allow HCP metrics collection for Envoy proxies
Co-authored-by: Ashvitha Sridharan <ashvitha.sridharan@hashicorp.com>
Co-authored-by: Freddy <freddygv@users.noreply.github.com>

Add a new envoy flag: "envoy_hcp_metrics_bind_socket_dir", a directory
where a unix socket will be created with the name
`<namespace>_<proxy_id>.sock` to forward Envoy metrics.

If set, this will configure:
- In bootstrap configuration a local stats_sink and static cluster.
  These will forward metrics to a loopback listener sent over xDS.

- A dynamic listener listening at the socket path that the previously
  defined static cluster is sending metrics to.

- A dynamic cluster that will forward traffic received at this listener
  to the hcp-metrics-collector service.


Reasons for having a static cluster pointing at a dynamic listener:
- We want to secure the metrics stream using TLS, but the stats sink can
  only be defined in bootstrap config. With dynamic listeners/clusters
  we can use the proxy's leaf certificate issued by the Connect CA,
  which isn't available at bootstrap time.

- We want to intelligently route to the HCP collector. Configuring its
  addreess at bootstrap time limits our flexibility routing-wise. More
  on this below.

Reasons for defining the collector as an upstream in `proxycfg`:
- The HCP collector will be deployed as a mesh service.

- Certificate management is taken care of, as mentioned above.

- Service discovery and routing logic is automatically taken care of,
  meaning that no code changes are required in the xds package.

- Custom routing rules can be added for the collector using discovery
  chain config entries. Initially the collector is expected to be
  deployed to each admin partition, but in the future could be deployed
  centrally in the default partition. These config entries could even be
  managed by HCP itself.
2023-03-10 13:52:54 -07:00
..
api-gateway-with-tcp-route-and-inline-certificate.latest.golden Inline API Gateway TLS cert code (#16295) 2023-02-17 12:46:03 -05:00
connect-proxy-exported-to-peers.latest.golden
connect-proxy-with-chain-and-failover-to-cluster-peer.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
connect-proxy-with-chain-and-failover.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
connect-proxy-with-chain-and-overrides.latest.golden
connect-proxy-with-chain-and-redirect-to-cluster-peer.latest.golden Make the mesh gateway changes to allow `local` mode for cluster peering data plane traffic (#14817) 2022-10-06 09:54:14 -04:00
connect-proxy-with-chain-external-sni.latest.golden
connect-proxy-with-chain.latest.golden
connect-proxy-with-default-chain-and-custom-cluster.latest.golden
connect-proxy-with-peered-upstreams.latest.golden Update envoy metrics label extraction for peered clusters and listeners (#13818) 2022-07-25 13:49:00 -04:00
connect-proxy-with-tcp-chain-double-failover-through-local-gateway-triggered.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
connect-proxy-with-tcp-chain-double-failover-through-local-gateway.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
connect-proxy-with-tcp-chain-double-failover-through-remote-gateway-triggered.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
connect-proxy-with-tcp-chain-double-failover-through-remote-gateway.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
connect-proxy-with-tcp-chain-failover-through-local-gateway-triggered.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
connect-proxy-with-tcp-chain-failover-through-local-gateway.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
connect-proxy-with-tcp-chain-failover-through-remote-gateway-triggered.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
connect-proxy-with-tcp-chain-failover-through-remote-gateway.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
defaults.latest.golden
hcp-metrics.latest.golden Allow HCP metrics collection for Envoy proxies 2023-03-10 13:52:54 -07:00
ingress-gateway-nil-config-entry.latest.golden ingress-gateways: don't log error when registering gateway (#15001) 2022-10-25 10:55:44 -07:00
ingress-gateway-no-services.latest.golden
ingress-gateway.latest.golden
ingress-multiple-listeners-duplicate-service.latest.golden
ingress-splitter-with-resolver-redirect.latest.golden
ingress-with-chain-and-failover-to-cluster-peer.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
ingress-with-chain-and-failover.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
ingress-with-chain-external-sni.latest.golden
ingress-with-chain.latest.golden
ingress-with-tcp-chain-double-failover-through-local-gateway-triggered.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
ingress-with-tcp-chain-double-failover-through-local-gateway.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
ingress-with-tcp-chain-double-failover-through-remote-gateway-triggered.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
ingress-with-tcp-chain-double-failover-through-remote-gateway.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
ingress-with-tcp-chain-failover-through-local-gateway-triggered.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
ingress-with-tcp-chain-failover-through-local-gateway.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
ingress-with-tcp-chain-failover-through-remote-gateway-triggered.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
ingress-with-tcp-chain-failover-through-remote-gateway.latest.golden Refactor the disco chain -> xds logic (#16392) 2023-02-23 11:32:32 -05:00
local-mesh-gateway-with-peered-upstreams.latest.golden Fix mesh gateway configuration with proxy-defaults (#15186) 2022-11-09 10:14:29 -06:00
mesh-gateway-default-service-subset.latest.golden
mesh-gateway-newer-information-in-federation-states.latest.golden
mesh-gateway-no-services.latest.golden
mesh-gateway-older-information-in-federation-states.latest.golden
mesh-gateway-peering-control-plane.latest.golden Update xds generation for peering over mesh gws 2022-10-03 12:42:27 -06:00
mesh-gateway-service-subsets.latest.golden
mesh-gateway-using-federation-states.latest.golden
mesh-gateway-with-exported-peered-services-http-with-router.latest.golden state: prohibit exported discovery chains to have cross-datacenter or cross-partition references (#13726) 2022-07-12 11:03:41 -05:00
mesh-gateway-with-exported-peered-services-http.latest.golden
mesh-gateway-with-exported-peered-services.latest.golden
mesh-gateway-with-imported-peered-services.latest.golden Make the mesh gateway changes to allow `local` mode for cluster peering data plane traffic (#14817) 2022-10-06 09:54:14 -04:00
mesh-gateway-with-peer-through-mesh-gateway-enabled.latest.golden feat: xDS updates for peerings control plane through mesh gw 2022-10-07 08:46:42 -06:00
mesh-gateway.latest.golden
splitter-with-resolver-redirect.latest.golden
terminating-gateway-default-service-subset.latest.golden
terminating-gateway-no-services.latest.golden
terminating-gateway-service-subsets.latest.golden
terminating-gateway.latest.golden
transparent-proxy-destination-http.latest.golden Tgtwy egress HTTP support (#13953) 2022-08-01 14:12:43 -04:00
transparent-proxy-destination.latest.golden feat: convert destination address to slice 2022-07-25 12:31:58 -04:00
transparent-proxy-terminating-gateway-destinations-only.latest.golden feat: connect proxy xDS for destinations 2022-07-14 15:27:02 -04:00
transparent-proxy-with-peered-upstreams.latest.golden Update envoy metrics label extraction for peered clusters and listeners (#13818) 2022-07-25 13:49:00 -04:00
transparent-proxy.latest.golden Make envoy resources for inferred peered upstreams (#13758) 2022-07-19 14:56:28 -04:00