DOCS / API REFERENCE

Query metrics

GET /v1/metrics/query

GETHenHouse API v1

Request

GET /v1/metrics/query

Authenticate with a bearer token. Create one with POST /v1/tokens or cluck login.

Parameters

NameTypeDescription
querystringA metric expression
fromstringStart time
tostringEnd time

Example

curl -X GET https://api.pollosoft.example/v1/metrics/query?query=example&from=example \
  -H "Authorization: Bearer $COOP_TOKEN"

Response

A successful call returns 200 OK with JSON like this:

{
  "series": "http_requests_total",
  "points": 288,
  "interval": "5m"
}

Errors

IdempotencyThis endpoint is safe to retry. Reads do not lay eggs.