REST APIOps
Platform metrics (prometheus registry as JSON).
The registry counts the whole process, so only an admin may read it.
GET
The registry counts the whole process, so only an admin may read it.
bearerAuthheader
AuthorizationBearer <token>A Sluby API key (sluby_...) sent as Authorization: Bearer <key>. Keys carry scopes: upload, read, manage.
Metrics.
application/json- response
timestamp*stringFormat
date-timemetrics*array<>The metrics registry as JSON, one entry per metric.
curl -X GET 'https://sluby.example.com/api/v1/metrics'Example Response
{ "timestamp": "2019-08-24T14:15:22Z", "metrics": [ { "name": "string", "help": "string", "type": "string", "values": [ {} ] } ]}