Cleanup
Now that we’re done experimenting with the suite of Thanos components, you can clean up your environment by reverting to our simple Prometheus deployment via Helm, like so:
$ helm upgrade --namespace prometheus \ --version 47.0.0 \ --values mastering-prometheus/ch10/prom-values.yaml \ mastering-prometheus \ prometheus-community/kube-prometheus-stack
Additionally, you can delete all of the Thanos components and our object storage configuration via kubectl
:
$ kubectl delete secret thanos-objstore-config $ kubectl delete -f https://raw.githubusercontent.com/PacktPublishing/Mastering-Prometheus/main/ch10/manifests/thanos-compact.yaml $ kubectl delete -f https://raw.githubusercontent.com/PacktPublishing/Mastering-Prometheus/main/ch10/manifests/thanos-query.yaml $ kubectl delete -f https://raw.githubusercontent.com/PacktPublishing/Mastering-Prometheus/main/ch10/manifests...