Skip to content

GetSeries

Source: src/AWS/AMP/GetSeries.ts

Runtime binding for aps:GetSeries — find series (full label sets) that match a selector via an AMP Workspace’s Prometheus-compatible api/v1/series endpoint, SigV4-signed with the host Function’s credentials.

const getSeries = yield* AMP.GetSeries(workspace);
const series = yield* getSeries({ match: ['{__name__="up"}'] });
// [{ __name__: "up", job: "api", instance: "..." }, ...]