Since the update to Prometheus 2.0, the documentation still has to catch up. Because I’ve been debugging a custom written exporter, some unwanted metrics landed in my Prometheus.
This is how to delete those series.
Enable the Prometheus Admin API
Deleting the metrics is only available over the Admin API. You can enable it with a flag. Just edit your Prometheus start-up script and add: