diff --git a/docs/Integration---Alert-Topic-Handler.md b/docs/Integration---Alert-Topic-Handler.md index 4b2cd2eee1bfdb6390caf41e47047a096c4abb69..01fb82ca24d96145187d2c55a3aeafda1517ca6a 100644 --- a/docs/Integration---Alert-Topic-Handler.md +++ b/docs/Integration---Alert-Topic-Handler.md @@ -96,7 +96,7 @@ kapacitor show-topic-handler http_topic handler_id cat /var/log/alert-test.log ``` -* Tear down the test scenario by killing the http server: +* Tear down the test scenario by killing the http server, deleting the log file and removing the alert, topic and handler: *find the PID of the http server* ```bash @@ -107,3 +107,15 @@ ps -ef | grep http_server ```bash kill <PID> ``` + +*remove the log file* +```bash +rm /var/log/alert-test.log +``` + +*remove the alert, handler and topic in kapacitor* +```bash +kapacitor delete tasks alert_id +kapacitor delete topic-handlers http_topic handler_id +kapacitor delete topics http_topic +```