Envoy
Prometheus Metrics
Envoy is a high-performance, open-source edge and service proxy designed for cloud-native applications.
Prometheus Metrics
Section titled “Prometheus Metrics”Service Configuration
Section titled “Service Configuration”Envoy exposes Prometheus metrics through its admin interface. Enable it in your envoy.yaml:
admin: address: socket_address: address: 0.0.0.0 port_value: 9901Once enabled, metrics are available at http://localhost:9901/stats/prometheus.
Glouton Configuration
Section titled “Glouton Configuration”sudo tee /etc/glouton/conf.d/99-envoy.conf > /dev/null << 'EOF'metric: prometheus: targets: - url: "http://localhost:9901/stats/prometheus" name: "envoy" allow_metrics: - "envoy_http_downstream_rq_total" - "envoy_http_downstream_cx_active" - "envoy_cluster_upstream_rq_total" - "envoy_cluster_upstream_cx_connect_fail" - "envoy_server_memory_allocated"EOFCreate or edit C:\ProgramData\glouton\conf.d\99-envoy.conf:
metric: prometheus: targets: - url: "http://localhost:9901/stats/prometheus" name: "envoy" allow_metrics: - "envoy_http_downstream_rq_total" - "envoy_http_downstream_cx_active" - "envoy_cluster_upstream_rq_total" - "envoy_cluster_upstream_cx_connect_fail" - "envoy_server_memory_allocated"Glouton automatically detects configuration changes.
| Metric | Description |
|---|---|
envoy_http_downstream_rq_total | Total number of downstream HTTP requests |
envoy_http_downstream_cx_active | Number of currently active downstream connections |
envoy_cluster_upstream_rq_total | Total number of upstream requests to cluster backends |
envoy_cluster_upstream_cx_connect_fail | Total number of failed upstream connection attempts |
envoy_server_memory_allocated | Amount of memory currently allocated by the Envoy server in bytes |