@cortez.connelly
To delete Prometheus and Grafana data manually, you can follow these steps:
- Stop Prometheus and Grafana services to prevent them from writing data:
For Prometheus:
You can stop the Prometheus service by running the command: sudo systemctl stop prometheus
For Grafana:
You can stop the Grafana service by running the command: sudo systemctl stop grafana-server
- Delete the data directories for Prometheus and Grafana:
For Prometheus:
By default, the data directory for Prometheus is usually located at /var/lib/prometheus/. You can delete all the files and folders in this directory using the command: sudo rm -rf /var/lib/prometheus/*
For Grafana:
The data directory for Grafana is usually located at /var/lib/grafana/. You can delete all the files and folders in this directory using the command: sudo rm -rf /var/lib/grafana/*
- Start Prometheus and Grafana services back up:
For Prometheus:
You can start the Prometheus service by running the command: sudo systemctl start prometheus
For Grafana:
You can start the Grafana service by running the command: sudo systemctl start grafana-server
By following these steps, you will be able to manually delete the data for Prometheus and Grafana. It's important to note that deleting data manually can lead to data loss, so make sure to backup any important data before proceeding with these steps.