Closed DenisCarriere closed 1 year ago
--metrics-labels
METRICS_LABELS
.env
bin/cli.ts
command.option('-l --labels [...string]', "To apply generic labels to all default metrics (ex: --labels foo=bar)", handleLabels, {})
export function handleLabels(value: string, previous: {}) { const params = new URLSearchParams(value); return { ...previous, ...Object.fromEntries(params) }; }
Done in commit: https://github.com/pinax-network/substreams-sink/commit/f6a59fbbbd4e6e6284edcf31e13ebbb2dff692f2
--metrics-labels
as CLIMETRICS_LABELS
as.env
settingsbin/cli.ts