Envoy Statistics API

Statistics, metrics, and Prometheus endpoints

Operations 4

GET /stats Get Envoy statistics #
GET /stats/prometheus Envoy Get statistics in Prometheus format #
GET /stats/recentlookups Envoy Get recently looked-up stat names #
POST /reset_counters Envoy Reset all statistics counters #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/envoy-statistics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

envoy-statistics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Envoy Statistics API
  version: 1.31.0
  description: 'Operations tagged Statistics across 2 of this provider''s published API definitions: envoy-admin-api-openapi.yml, envoy-admin-api-openapi_2.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:9901
  description: Default Envoy Admin Interface
tags:
- name: Statistics
  description: Statistics, metrics, and Prometheus endpoints
paths:
  /stats:
    get:
      operationId: getStats
      summary: Get Envoy statistics
      description: Returns all recorded statistics including counters, gauges, and histograms for the Envoy instance. Supports filtering by stat name pattern and type, and can return data in text, JSON, or Prometheus exposition format.
      tags:
      - Statistics
      parameters:
      - name: format
        in: query
        description: Output format for statistics data.
        required: false
        schema:
          type: string
          enum:
          - json
          - text
          - prometheus
          default: text
      - name: filter
        in: query
        description: Regex pattern to filter stat names.
        required: false
        schema:
          type: string
      - name: type
        in: query
        description: Filter statistics by type.
        required: false
        schema:
          type: string
          enum:
          - Counters
          - Gauges
          - Histograms
      - name: usedonly
        in: query
        description: When true, only return statistics that have been written to at least once.
        required: false
        schema:
          type: boolean
          default: false
      responses:
        '200':
          description: Statistics retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatsResponse'
            text/plain:
              schema:
                type: string
    servers:
    - url: http://localhost:9901
      description: Default Envoy Admin Interface
  /stats/prometheus:
    get:
      operationId: getStatsPrometheus
      summary: Envoy Get statistics in Prometheus format
      description: Returns all statistics formatted for Prometheus scraping using the standard Prometheus text exposition format. Supports filtering and can optionally return only stats that have been used.
      tags:
      - Statistics
      parameters:
      - name: usedonly
        in: query
        description: When true, only return statistics that have been written to at least once.
        required: false
        schema:
          type: boolean
          default: false
      - name: filter
        in: query
        description: Regex pattern to filter stat names.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Prometheus-formatted statistics
          content:
            text/plain:
              schema:
                type: string
    servers:
    - url: http://localhost:9901
      description: Default Envoy Admin Interface
  /stats/recentlookups:
    get:
      operationId: getRecentLookups
      summary: Envoy Get recently looked-up stat names
      description: Returns a list of the most recently looked-up stat names along with lookup counts. Useful for debugging stat name patterns.
      tags:
      - Statistics
      responses:
        '200':
          description: Recently looked-up stat names
          content:
            text/plain:
              schema:
                type: string
    servers:
    - url: http://localhost:9901
      description: Default Envoy Admin Interface
  /reset_counters:
    post:
      operationId: resetCounters
      summary: Envoy Reset all statistics counters
      description: Resets all statistics counters to zero. Does not affect gauges or histograms. Useful for testing and debugging scenarios where you want a clean baseline for counter metrics.
      tags:
      - Statistics
      responses:
        '200':
          description: Counters reset successfully
          content:
            text/plain:
              schema:
                type: string
    servers:
    - url: http://localhost:9901
      description: Default Envoy Admin Interface
components:
  schemas:
    StatsResponse:
      type: object
      description: Envoy statistics as structured JSON
      properties:
        stats:
          type: array
          description: List of statistic entries
          items:
            type: object
            properties:
              name:
                type: string
                description: Fully-qualified statistic name
              value:
                type: integer
                description: Current value of the statistic
              type:
                type: string
                description: Statistic type
                enum:
                - Counter
                - Gauge
                - Histogram
    StatsResponse_2:
      type: object
      description: Envoy statistics
      properties:
        stats:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              value:
                type: integer
              type:
                type: string
                enum:
                - Counter
                - Gauge
                - Histogram
externalDocs:
  description: Envoy Admin Interface Documentation
  url: https://www.envoyproxy.io/docs/envoy/latest/operations/admin
x-refined-from:
- envoy-admin-api-openapi.yml
- envoy-admin-api-openapi_2.yml