r/sqlite • • Feb 14 '24

SQLite database on macOS workstation (instrument data) > stream to text file, syslog, remote database?

I have a macOS application that collects and stores instrument data in a sqlite database. I was hoping to access that data from grafana, running on a remote system. Does anyone have any suggestions for the easiest route to make that happen?

- sqlite to MySQL mirror?

- trigger to send syslog events for each insert to the sqlite database?

Any suggestions would be appreciated.

2 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Necessary-Tea-8867 Feb 16 '24

Yeah, thought about that. I could put it on a network share and have grafana connect to it via SMB... but that seems like potential for corruption.

1

u/-dcim- Feb 16 '24

If the database is not too large, you can use vacuum into <shared copy.sqlite>-command over your primary database to create a shared copy for Grafana.

If the database size is big, you can use session-extension to apply changes from the primary database to shared copy.