i have 2 jobs. One is new, the other is old.
I need to delete the old one, so that it gets removed from Grafana dashboard too.
i try to delete the old job with the exact command would be something like:
curl -X POST -g 'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]={job="name_of_old_job"}'
Replace name_of_old_job with the name of the job you want deleted.
but it dosen’t work → 404
run this in order to get a list of all prometheus jobs that i have:
curl http://localhost:9090/api/v1/label/job/values
but it dosen’t work → 404
with FQDN and exact Url Path:
curl -X POST -g ‘http://**FQDN/prometheus/api/v1/admin/tsdb/delete_series?match={job=“name_of_old_job”}’
301 Moved Permanently
nginx
have somebody an idee?