Prometheus · Arazzo Workflow
Prometheus Purge a Retired Job's Pushed Metrics
Version 1.0.0
Find a stale metric group left by a decommissioned job and delete it.
Provider
Workflows
purge-retired-job-metrics
Delete every metric for a retired job after confirming the group is stale.
Checking lastPushedAt before deleting is the whole point of the first step: it separates a genuinely abandoned group from one belonging to a job that is merely infrequent and would notice its metrics vanishing.
1
findStaleGroup
List every stored metric group and read the labels and last push time. A lastPushedAt far in the past is the evidence that this group belongs to a job that no longer runs rather than one that runs rarely.
2
deleteJobMetrics
Delete every metric stored under this job label. Prometheus stops seeing the job's series on its next scrape of the Pushgateway.
3
verifyPurged
Read the stored groups back and confirm the retired job's group is no longer among them.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.