---
updatedAt: 2026-07-12T09:38:47.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/governance/llms.txt
---

# Get metrics

Collect and return the metrics

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "contact": {},
    "description": "This is the API documentation for the AppTrust Service.",
    "title": "AppTrust Service API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{jfrog_url}/apptrust/api",
      "description": "JFrog Platform",
      "variables": {
        "jfrog_url": {
          "default": "myserver.jfrog.io",
          "description": "Your JFrog Platform hostname (e.g., mycompany.jfrog.io)"
        }
      }
    }
  ],
  "paths": {
    "/v1/metrics": {
      "get": {
        "description": "Collect and return the metrics",
        "operationId": "getMetrics",
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Metrics collected successfully"
          }
        },
        "summary": "Get metrics",
        "tags": [
          "Metrics"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-original-swagger-version": "2.0",
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```