GetLabels
Source:
src/AWS/AMP/GetLabels.ts
Runtime binding for aps:GetLabels — list label names and label values
from an AMP Workspace’s Prometheus-compatible query API,
SigV4-signed with the host Function’s credentials.
Exploring Labels
Section titled “Exploring Labels”List Label Names
const labels = yield* AMP.GetLabels(workspace);const names = yield* labels.labelNames();List Metric Names
const metricNames = yield* labels.labelValues({ label: "__name__" });