Skip to main content
POST
/
monitoring
/
metrics
/
current
Get multiple current metric values
curl --request POST \
  --url https://api.quiva.ai/monitoring/metrics/current \
  --header 'Content-Type: application/json' \
  --data '
{
  "metrics": [
    "messages_per_second",
    "memory_usage",
    "error_rate"
  ],
  "account": "acme",
  "stream": "events"
}
'
{
  "message": "success",
  "data": [
    {
      "ts": 1715241600000,
      "value": 152.3
    },
    {
      "ts": 1715241600000,
      "value": 78.5
    },
    {
      "error": "no data"
    }
  ]
}

Body

application/json

Metrics request parameters

metrics
string[]
required

Array of metric names to retrieve

Minimum array length: 1
node
string

Node identifier

account
string

Account identifier (required if node not provided)

stream
string

Stream name

consumer
string

Consumer name (requires stream to be specified)

Response

Successful operation

message
string

Response message

data
object[]

Array of metric data points or error messages

metadata
object

Optional metadata