Query metrics
Returns a tenant’s metrics over a span of time: calls, errors and latency, wakes, connections and usage, for each luna type and for all of them together, with a point for each minute.
/_luna/telemetry/{tenant}/metricsAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
metrics:readtenantstringrequiredThe tenant, by its full name.
sinceinteger<int64>Metrics from this moment on, in milliseconds since the Unix epoch. One hour ago when left out.
untilinteger<int64>Metrics up to this moment, in milliseconds since the Unix epoch. Now when left out.
typestringOnly this luna type. The answer then also has each handler's figures by the minute.
The metrics.
typesTypeMetricsSummary[]requiredThe figures of each luna type.
Show propertiesHide properties
TypeMetricsSummarylunaTypestringrequiredcallsinteger<int64>requiredHow many calls were handled.
errorsinteger<int64>requiredHow many of them failed.
p50Usinteger<int64>requiredThe median time a call took, in microseconds.
p99Usinteger<int64>requiredThe time 99 calls in 100 finished within, in microseconds.
wakesinteger<int64>requiredHow many times a luna woke.
wakeP99Usinteger<int64>requiredThe time 99 wakes in 100 finished within, in microseconds.
deadLettersinteger<int64>requiredMessages given up on after every retry.
connectsinteger<int64>requiredClient connections opened.
disconnectsinteger<int64>requiredClient connections closed.
activeMsinteger<int64>requiredThe time lunas spent handling calls, in milliseconds.
usageobjectrequiredWhat the type used over the span, by meter. Meters at zero are left out.
handlersobjectrequiredEach handler's calls, errors, p50Us and p99Us, by handler name.
seriesobject[]requiredOne point for each minute, as in all.
hotobject[]requiredThe busiest lunas of the type, each with its key, calls, busyUs and errors.
customobject[]requiredThe metrics your code records, each with its name, kind, unit, attrs, count, sum, min, max and last.
customDroppedinteger<int64>requiredHow many of your metrics were dropped for being over the limit.
handlerSeriesobject | nullEach handler's points for each minute, by handler name. Only when the request names one type.
behindMsinteger<int64> | nullHow far behind their sources an index's lunas ran on average, in milliseconds. Only for a type that ran behind.
behindMaxMsinteger<int64> | nullHow far behind they ran at worst, in milliseconds.
allAllMetricsSummaryrequiredThe figures of every luna type together.
Show propertiesHide properties
callsinteger<int64>requiredHow many calls were handled.
errorsinteger<int64>requiredHow many of them failed.
p50Usinteger<int64>requiredThe median time a call took, in microseconds.
p99Usinteger<int64>requiredThe time 99 calls in 100 finished within, in microseconds.
wakesinteger<int64>requiredHow many times a luna woke.
wakeP99Usinteger<int64>requiredThe time 99 wakes in 100 finished within, in microseconds.
deadLettersinteger<int64>requiredMessages given up on after every retry.
connectsinteger<int64>requiredClient connections opened.
disconnectsinteger<int64>requiredClient connections closed.
activeMsinteger<int64>requiredThe time lunas spent handling calls, in milliseconds.
usageobjectrequiredWhat was used over the span, by meter, such as lunaCpuMs and egressBytes. Meters at zero are left out.
seriesobject[]requiredOne point for each minute, with minuteMs, calls, errors, p50Us, p99Us, awake and activeMs. The rarer figures appear only in the minutes that had any.
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.