Sluby
REST APIOps

Platform metrics (prometheus registry as JSON).

The registry counts the whole process, so only an admin may read it.

GET
/api/v1/metrics

The registry counts the whole process, so only an admin may read it.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A Sluby API key (sluby_...) sent as Authorization: Bearer <key>. Keys carry scopes: upload, read, manage.

Response Body

Metrics.

application/json
  1. response
timestamp*string
Formatdate-time
metrics*array<>

The metrics registry as JSON, one entry per metric.

Example Request
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": [        {}      ]    }  ]}