I have set up a pushgateway instance in my kubernetes cluster to record metrics from short lived cronjobs that run every ~1 minute. Each cronjob pushes metrics at the end of the job with a unique job name. This is causing metrics to pile on the pushgateway. I am yet to set up the pushgateway as a scrape target for prometheus. I was wondering if there is a way to delete all metrics after each scrape.
Asked
Active
Viewed 130 times