# Cleanup ## Benchmark data in Prometheus To remove benchmark metrics from Prometheus, use the provided script: ```bash # Port-forward to Prometheus if needed kubectl port-forward -n monitoring svc/prometheus-kube-prometheus-prometheus 9090:9090 & ./scripts/cleanup-benchmark-data.sh ``` The script deletes all `epimetheus_benchmark_*` series via the Admin API and runs clean_tombstones. **Manual deletion:** ```bash # Delete a specific metric curl -X POST 'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]=epimetheus_benchmark_cpu_usage' # Clean tombstones curl -X POST http://localhost:9090/api/v1/admin/tsdb/clean_tombstones ``` The Admin API must be enabled on Prometheus (see [Setup: Prometheus](setup-prometheus.md)). ## Other cleanup **Stop port-forwards:** ```bash pkill -f "port-forward.*9091" pkill -f "port-forward.*9090" pkill -f "port-forward.*3000" ``` **Remove test metrics from Pushgateway:** ```bash curl -X DELETE http://localhost:9091/metrics/job/example_metrics_pusher ``` **Uninstall Pushgateway (Helm):** ```bash helm uninstall pushgateway -n monitoring ```