Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging time series operations #264

Open
omuelle opened this issue Apr 13, 2023 · 0 comments
Open

Logging time series operations #264

omuelle opened this issue Apr 13, 2023 · 0 comments

Comments

@omuelle
Copy link

omuelle commented Apr 13, 2023

It would be useful to have a log of the timeseriesdb operations. For example to know when and by whom a particular series was read.

I was thinking of a table with the following columns:

  • ts_key: Key of the series affected
  • username: Who executed the operation. By default the DB user, but it should be possible to set a different username.
  • tstamp: Timestamp of the operation
  • operation: ID of operation. E.g. read, write, metadata_read, metadata_write, change_access, delete etc.

Such a table would grow quickly. For example with ~512 bytes per record and a million operations per day, to roughly 187GB within a year. Hence logging should be optional.

What do you think? Any obvious issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant