This check collects distributed system observability metrics from Envoy.
The Envoy check is included in the Datadog Agent package, so you don't need to install anything else on your server.
-
Edit the
envoy.d/conf.yaml
file, in theconf.d/
folder at the root of your Agent's configuration directory to start collecting your Envoy performance data. See the sample envoy.d/conf.yaml for all available configuration options. -
Check if the Datadog Agent can access Envoy's admin endpoint.
If you are using Envoy as part of Istio, to access Envoy's admin endpoint you need to set Istio's proxyAdminPort.
There are 2 ways to setup the /stats
endpoint:
Here's an example Envoy admin configuration:
admin:
access_log_path: "/dev/null"
address:
socket_address:
address: 0.0.0.0
port_value: 8001
Create a listener/vhost that routes to the admin endpoint (Envoy connecting to itself), but only has a route for /stats
; all other routes get a static/error response. Additionally, this allows nice integration with L3 filters for auth, for example.
Here's an example config (from this gist):
admin:
access_log_path: /dev/null
address:
socket_address:
protocol: TCP
address: 127.0.0.1
port_value: 8081
static_resources:
listeners:
- address:
socket_address:
protocol: TCP
address: 0.0.0.0
port_value: 80
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
codec_type: AUTO
stat_prefix: ingress_http
route_config:
virtual_hosts:
- name: backend
domains:
- "*"
routes:
- match:
prefix: /stats
route:
cluster: service_stats
http_filters:
- name: envoy.router
config:
clusters:
- name: service_stats
connect_timeout: 0.250s
type: LOGICAL_DNS
lb_policy: ROUND_ROBIN
hosts:
- socket_address:
protocol: TCP
address: 127.0.0.1
port_value: 8001
Run the Agent's status
subcommand and look for envoy
under the Checks section.
See metadata.csv for a list of metrics provided by this integration.
See metrics.py for a list of tags sent by each metric.
The Envoy check does not include any events at this time.
envoy.can_connect
:
Returns CRITICAL if the Agent cannot connect to Envoy to collect metrics, otherwise OK.
Need help? Contact Datadog Support.