Cloud Foundry Custom Metrics API V1 API

Work with application-specific custom metrics to scale your application.

Operations 1

POST /v1/apps/{appGuid}/metrics Submits application-specific custom metrics to app-autoscaler #

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/cloud-foundry-custom-metrics-api-v1-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

cloud-foundry-custom-metrics-api-v1-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: app-autoscaler custom metrics Custom Metrics API V1 API
  description: app-autoscaler lets you automatically increase or decrease the number of your application instances based on the policies you have defined. Your applications can call the app-autoscaler custom metrics API to submit custom metrics defined and used in a dynamic scaling policy to enable automatic scaling based on application-specific metrics.
  version: 1.0.0
  license:
    name: Apache License Version 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
tags:
- name: Custom Metrics API V1
  description: Work with application-specific custom metrics to scale your application.
paths:
  /v1/apps/{appGuid}/metrics:
    parameters:
    - in: path
      name: appGuid
      description: 'The GUID identifying the application for which the metrics are fetched.


        It can be found in the `application_id` property of the JSON object stored in the

        `VCAP_APPLICATION` environment variable.

        '
      example: 58d162ad-87d5-4f52-8abf-e56a63a67292
      required: true
      schema:
        $ref: ./shared_definitions.yaml#/schemas/GUID
    post:
      summary: Submits application-specific custom metrics to app-autoscaler
      description: 'Use to submit custom metrics to app-autoscaler which are defined and used in a dynamic

        scaling policy to enable automatic scaling based on application-specific metrics.


        We recommend submitting the custom metrics every 40 seconds from every application instance.'
      tags:
      - Custom Metrics API V1
      requestBody:
        description: Custom metrics to be submitted to app-autoscaler.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Metrics'
        required: true
      responses:
        '200':
          description: Metrics were successfully submitted.
        default:
          $ref: ./shared_definitions.yaml#/responses/Error
      security:
      - basicAuthentication: []
      - mtls: []
      x-codegen-request-body-name: body
      operationId: postV1AppsByAppGuidMetrics
      x-operation-id-source: derived
components:
  schemas:
    Metric:
      required:
      - name
      - value
      type: object
      properties:
        name:
          type: string
          description: The name of the custom metric, must have been defined by using it in the scaling policy for the application before submitting.
          example: queue_length
        value:
          type: number
          description: The value of the custom metric.
          example: 1337
        unit:
          type: string
          description: An optional unit for the metric, for display purposes only.
          example: jobs
    Metrics:
      required:
      - instance_index
      - metrics
      type: object
      properties:
        instance_index:
          type: integer
          format: int64
          description: The index of the application instance the custom metrics are submitted for. Can be found in the `CF_INSTANCE_INDEX` environment variable.
          example: 0
        metrics:
          type: array
          items:
            $ref: '#/components/schemas/Metric'
          description: The custom metrics to be submitted.
  securitySchemes:
    mtls:
      type: mutualTLS
      description: Use the Instance Identity Credentials provided by the Cloud Foundry runtime
    basicAuthentication:
      type: http
      scheme: basic