Skip to content

Metrics by stream type #14

@joonas-fi

Description

@joonas-fi

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions