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
listAllMetrics
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
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
listAllMetrics
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.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for arazzo workflows
4 MCP tools reach this
find_arazzoBrowse and filter every workflow in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/prometheus-purge-retired-job-metrics-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.