Skip to content

Querying

Queries need the management token.

History

curl -s "http://aggregator-1:8080/v1/query?scope=node&metric=gpu_utilization&node_id=node-1" -H "Authorization: Bearer $MANAGEMENT_TOKEN"
Parameter Meaning
scope node, block or cluster. Required
metric Name. Required
from_ms, to_ms Time range. The last hour by default
node_id, block_id, cluster_id Filters

At most 10,000 rows are returned, newest first. Each row covers one window and series, with count, sum, min, max and last.

The average of a gauge is sum / count. The increase of a counter that writes increments is sum.

Current values

curl -s "http://aggregator-1:8080/v1/current?scope=block&id=block-1" -H "Authorization: Bearer $MANAGEMENT_TOKEN"

id is the node, block or cluster. cluster_id defaults to the aggregator's cluster.

SQL

Aggregates are in the TimescaleDB table metrics of each aggregator. Data older than retention_days is removed.

Compare aggregators

A node writes to several independent aggregators. Compare their answers to detect one that is faulty or dishonest.