sipcapture / homer

HOMER - 100% Open-Source SIP, VoIP, RTC Packet Capture & Monitoring
https://sipcapture.org
GNU Affero General Public License v3.0
1.61k stars 240 forks source link

A way to clear the data in homer10 (grafana) #658

Closed bazrafshanmh closed 2 weeks ago

bazrafshanmh commented 2 weeks ago

Is there a way to clear the data in Grafana dashboards from now on?

lmangani commented 2 weeks ago

I do not understand your question. Could you articulate more or provide an example?

bazrafshanmh commented 2 weeks ago

Think about when your dashboard is messy and you want to make it clean and don't want to set an end date for the time.

lmangani commented 2 weeks ago

I still don't uderstand. Dashboards use variables (such as timerange, filters) and those can be set to defaults when saving, if that's what you mean? Unless you save the dashboard in Grafana and/or provide URL parameters it will go back to the saved defaults.

bazrafshanmh commented 2 weeks ago

In Wireshark, you can "restart current capture" to clean the view. Is there any alternative way to do this in Grafana/Home10?

lmangani commented 2 weeks ago

Yes, by resettings the time filters and enabling autorefresh you would get a similar effect. But since we're working with stored data there's no such thing as restarting a capture, you can only modify the filters and time range. hope this helps.

bazrafshanmh commented 2 weeks ago

Thanks! Isn't there any way to work with the databases and clear one table's contents?