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 simplicity:

  • Alert Manager is included, allowing you to send alerts directly to Slack, Mattermost, PagerDuty, and other popular platforms.
  • A dedicated email server enables you to send unlimited email alerts with no additional configuration required.
  • Blackbox is provided, so you can probe HTTP, 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.
  • Optimal performance and enhanced security thanks to your own private, dedicated VM.

Save time and make your life easier: it takes just 5 minutes to try Stackhero's Prometheus cloud hosting solution!

If you need to remove specific time-series data recorded in Prometheus, you can utilise 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.