open-consul/command/connect/envoy/testdata
Ashvitha f514182f3e
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
..
CONSUL_GRPC_ADDR-with-https-scheme-enables-tls.golden Fix issue with connect Envoy choosing incorrect TLS settings. (#15466) 2022-11-18 14:36:20 -06:00
CONSUL_HTTP_ADDR-with-https-scheme-does-not-affect-grpc-tls.golden Fix issue with connect Envoy choosing incorrect TLS settings. (#15466) 2022-11-18 14:36:20 -06:00
access-log-path.golden
access-logs-enabled-custom.golden [OSS] feat: add access log config to consul envoy connect (#15946) 2023-01-09 15:16:00 -05:00
access-logs-enabled.golden [OSS] feat: add access log config to consul envoy connect (#15946) 2023-01-09 15:16:00 -05:00
acl-enabled-and-token.golden Warn if ACL is enabled but no token is provided to Envoy (#15967) 2023-01-16 12:31:56 -05:00
acl-enabled-but-no-token.golden Warn if ACL is enabled but no token is provided to Envoy (#15967) 2023-01-16 12:31:56 -05:00
both-CONSUL_HTTP_ADDR-PLAIN-and-CONSUL_GRPC_ADDR-TLS-is-tls.golden Fix issue with connect Envoy choosing incorrect TLS settings. (#15466) 2022-11-18 14:36:20 -06:00
both-CONSUL_HTTP_ADDR-TLS-and-CONSUL_GRPC_ADDR-PLAIN-is-plain.golden Fix issue with connect Envoy choosing incorrect TLS settings. (#15466) 2022-11-18 14:36:20 -06:00
custom-bootstrap.golden
defaults-nodemeta.golden
defaults.golden
deprecated-grpc-addr-config.golden
envoy-readiness-probe.golden Add support for envoy readiness flags (#16015) 2023-01-19 16:54:11 -05:00
existing-ca-file.golden
existing-ca-path.golden
extra_-multiple.golden
extra_-single.golden
grpc-addr-env.golden
grpc-addr-flag.golden
grpc-addr-unix-with-tls.golden Fix issue where TLS configuration was ignored for unix sockets in consul connect envoy. (#15913) 2023-01-06 12:34:49 -06:00
grpc-addr-unix.golden
grpc-tls-addr-config.golden
hcp-metrics.golden Allow HCP metrics collection for Envoy proxies 2023-03-10 13:52:54 -07:00
ingress-gateway-address-specified.golden
ingress-gateway-no-auto-register.golden
ingress-gateway-nodemeta.golden
ingress-gateway-register-with-service-and-proxy-id.golden
ingress-gateway-register-with-service-without-proxy-id.golden
ingress-gateway.golden
prometheus-metrics-tls-ca-file.golden
prometheus-metrics-tls-ca-path.golden
prometheus-metrics.golden
stats-config-override.golden
token-arg.golden
token-env.golden
token-file-arg.golden
token-file-env.golden
xds-addr-config.golden
zipkin-tracing-config.golden