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

Metrics by stream type #14

Open
joonas-fi opened this issue Aug 11, 2021 · 0 comments
Open

Metrics by stream type #14

joonas-fi opened this issue Aug 11, 2021 · 0 comments

Comments

@joonas-fi
Copy link
Member

The database itself could help us get universal timeseries metrics by counting encrypted (to exclude plaintext meta events like subscriptions etc.) log messages posted to stream patterns like:

Countable thing Stream pattern Pattern meaning
User logins /+/users/+/logins /<tenant>/users/<userid>/logins
Sensors observations /+/sensors/+ /<tenant>/sensors/<sensorId>
Comments posted /+/comments/+ /<tenant>/comments/<threadid>
SSL certificates renewed /+/tls-certificates/+ /<tenant>/tls-certificates/<managedCertificateId>

Also we can get:

  • all in aggregate (over all tenants)
  • breakdowns by tenant

This can be done somewhat securely without needing access to encryption keys if we only use metadata (log entry # per stream), assuming streams are granular enough.

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

No branches or pull requests

1 participant