---
source: apollo-router/src/plugins/telemetry/config_new/instruments.rs
description: Both subgraph and connector HTTP client duration metrics
expression: "&metrics.all()"
info:
  telemetry:
    instrumentation:
      instruments:
        default_requirement_level: none
        connector:
          rate.limit:
            value:
              connector_http_response_header: x-ratelimit-remaining
            unit: count
            type: histogram
            description: Rate limit remaining
            condition:
              all:
                - eq:
                    - 200
                    - connector_http_response_status: code
                - eq:
                    - user_api
                    - connector_source: name
---
- name: rate.limit
  description: Rate limit remaining
  unit: count
  data:
    datapoints:
      - sum: 1499
        count: 2
        attributes: {}
