Skip to content

Monitoring API

API endpoints for platform monitoring and metrics.

Endpoints

GET /api/v1/metrics

Get platform metrics.

Query Parameters:

  • service - Filter by service name
  • timeframe - Time range (1h, 24h, 7d, 30d)
  • metric - Specific metric name

Response:

json
{
  "metrics": [
    {
      "name": "Platform.Provisioning.Success",
      "value": 150,
      "timestamp": "2024-01-01T00:00:00Z"
    }
  ]
}

GET /api/v1/services/{service}/metrics

Get metrics for a specific service.

Response:

json
{
  "service": "my-app",
  "metrics": {
    "cpu_utilization": 45.2,
    "memory_utilization": 62.1,
    "request_count": 1250
  }
}

Implementation

This would query CloudWatch metrics and return formatted data.

Example Implementation

See example implementations in:

  • lambda/ - Lambda function example
  • express/ - Express.js example

Released under the MIT License.