Prometheus Metrics

Get all metrics for a service

Fetch a comprehensive set of metrics for a given application and service.

get/api/v1/prometheus/metrics/all

Request

  • Base URL
    http://localhost:8080
  • Auth
    API key in header Authorization

Query parameters

appNamestring required

Application name

serviceNamestring required

Service name

timeRangestring

Time range for metrics (e.g., '5m', '1h', defaults to '5m')

Response

All metrics for the service

app_namestring
avg_latencystring

Average response time

cpu_usagenumber

0.0 to 1.0 (0% to 100%)

error_ratenumber

0.0 to 1.0 (0% to 100%)

memory_usagenumber

0.0 to 1.0 (0% to 100%)

service_namestring
throughputnumber

Requests per second

timestampstring

Example response

{
  "avg_latency": "1m30s"
}

Changes

No recorded changes to this operation across all 1 revision of this API.