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

[Feature request] Cluster stats #27

Closed
NeQuissimus opened this issue Sep 29, 2022 · 3 comments
Closed

[Feature request] Cluster stats #27

NeQuissimus opened this issue Sep 29, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@NeQuissimus
Copy link

Consider adding support for reporting statistics such as the following:

  • Number of active pods
  • Number of entities
  • Number of shards
  • Number of register/unregister events
  • Results of health checks
  • Start and stop (and by extension runtime) times of rebalances

Having the above in something like StatsD or Prometheus would enable visualizing cluster size, status and health very easily.

@ghostdogpr
Copy link
Collaborator

Currently we expose:

  • ShardManager#getAssignments gives you shard assignments, we could expose getPods as well
  • ShardManager#getShardingEvents gives you a stream of assignments/unassignments events. We could add register and unregister there.
  • Sharding#getPods gives you all pods with their addresses

Note that most of these metrics would be on the shard manager side (rebalances, register/unregister events, etc), but some would be on the pods side (mostly entities: the shard manager doesn't know about them).

@ghostdogpr ghostdogpr added the enhancement New feature or request label Sep 30, 2022
@NeQuissimus
Copy link
Author

ZIO Metrics should provide an easy interface to send these values to various backends such as DataDog or Prometheus.

@ghostdogpr
Copy link
Collaborator

ZIO Metrics integration done in #116

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

No branches or pull requests

2 participants