Kapacitor databases gets deleted on container restart
Summary
For some reason, Kapacitor stores its database in /kapacitor.db
instead of /var/lib/kapacitor/kapacitor.db
.
When you restart the container, the database is lost.
Possible fixes
Add to kapacitor.conf
:
[replay]
dir = "{{ _kapacitor_container_data_directory }}/replay"
[storage]
boltdb = "{{ _kapacitor_container_data_directory }}/kapacitor.db"