Writing on InfluxDB stopped because of space on device

InfluxDB storage is full and writing to InfluxDB is stopped. Is there any solution to notify InfluxDB to stop collecting data by command or configuration.?

I think nothing.
I also use InfluxDB.
I use icinga for monitoring disk usage and process.
I will stop/start InfluxDB manually.