prometheus

reload service after configuration change

kill -HUP $PID

Remove Specific Data

In prometheus webui, execute scrape_series_added to list instances and jobs to remove.

Update ARGS in file /etc/default/prometheus

ARGS="--web.enable-admin-api"

Restart prometheus

service prometheus restart

Run curl command to perform deletion

curl -X POST -g 'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]={instance="https://github.com",job="blackbox-http"}'
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9