Prometheus: Deleting data from Prometheus
This documentation is part of the Introduction guide. You can view the complete guide here: How Prometheus works.
👋 Welcome to the Stackhero documentation!
Stackhero offers a ready-to-use Prometheus cloud solution designed for reliability and ease of use:
Alert Manageris included, allowing you to send alerts directly toSlack,Mattermost,PagerDuty, and other popular platforms.- A dedicated email server lets you send unlimited email alerts with no additional setup required.
Blackboxis included, so you can probeHTTP,ICMP,TCP, and more for comprehensive monitoring.- Simple configuration with the online configuration file editor—no need to manage YAML manually.
- Easy updates with just one click. Stackhero takes care of the upgrade process for you.
- Optimal performance and enhanced security thanks to your own private, dedicated VM.
Save time and make your life easier: it only takes 5 minutes to try Stackhero's Prometheus cloud hosting solution!
If you need to remove specific time-series data recorded in Prometheus, you can utilize the admin API. For example, to delete data associated with a job named oldJob, you could use the following command:
curl -u admin -X POST -g 'https://<yourServiceDomain>/api/v1/admin/tsdb/delete_series?match[]={job="oldJob"}'
Once data is deleted, it cannot be recovered. Ensure you have comprehensive backups and proceed cautiously when performing such actions.
For additional information, refer to the official Prometheus documentation.