Document proxy-defaults config for prometheus (#9640)

This commit is contained in:
Luke Kysow 2021-01-26 17:19:30 -08:00 committed by GitHub
parent d0c9c8b271
commit 38d630e2e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 33 additions and 0 deletions

View File

@ -84,6 +84,39 @@ spec:
</Tab>
</Tabs>
### Prometheus
<Tabs>
<Tab heading="HCL">
Expose prometheus metrics:
```hcl
Kind = "proxy-defaults"
Name = "global"
Config {
envoy_prometheus_bind_addr = "0.0.0.0:9102"
}
```
</Tab>
<Tab heading="Kubernetes YAML">
Expose prometheus metrics:
```yaml
apiVersion: consul.hashicorp.com/v1alpha1
kind: ProxyDefaults
metadata:
name: global
spec:
config:
envoy_prometheus_bind_addr: '0.0.0.0:9102'
```
</Tab>
</Tabs>
### Proxy-specific defaults
<Tabs>