statusengine / broker

Repository of the Statusengine Event Broker Module written in C++ (development)
GNU General Public License v2.0
8 stars 5 forks source link

Delete Performancedata from "check" #25

Closed tinoklauer closed 3 years ago

tinoklauer commented 3 years ago

Hi,

is it possible to reset(delete) performance data from one check for example localhost - CPU load?

thx

nook24 commented 3 years ago

Yes of course.

MySQL and CrateDB

DELETE FROM statusengine_perfdata WHERE hostname='localhost' AND service_description='Ping';

Graphite

rm -rf /var/lib/graphite/whisper/statusengine/localhost/Ping

Elasticsearch is a bit trickier, you need to send a delete request like documented: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html

tinoklauer commented 3 years ago

thanks