Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Add instrumentation for value-based entities (Entity) #474

Open
ralphlaude opened this issue Nov 4, 2020 · 0 comments
Open

Add instrumentation for value-based entities (Entity) #474

ralphlaude opened this issue Nov 4, 2020 · 0 comments

Comments

@ralphlaude
Copy link
Contributor

Add some metrics for value-based entities using the already available prometheus client.
Metrics should be tagged by the user function entity name (such as "shopping-cart") so they're aggregated metrics for an entity type on a node.

Count metrics include:

  • gauge: entity instances currently active
  • count: entity instances that have activated
  • count: entity instances that have passivated
  • count: commands received for an entity
  • count: commands stashed for an entity
  • count: commands processed for an entity
  • count: load operations for an entity
  • count: state sizes (bytes) loaded for an entity
  • count: persist operations for an entity
  • count: state sizes (bytes) persisted for an entity
  • count: delete operations for an entity

Timing metrics include:

  • histogram: load operations duration for an entity
  • histogram: persist operations duration for an entity
  • histogram: delete operations duration for an entity

Please see #220

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

Successfully merging a pull request may close this issue.

1 participant