Open sebarys opened 5 years ago
Hi,
the way you have your metrics, you can't differentiate them by node. You will need to add a tag to each metrics for each node you get them from. Finally, you'll need to have something like this:
akka_cluster_sharding_region_hosted_shards_count{type="Dispatcher", my_node_tag="node-1"} 1007502.0
akka_cluster_sharding_region_hosted_shards_count{type="Dispatcher", my_node_tag="node-2"} 95502.0
akka_cluster_sharding_region_hosted_shards_count{type="Dispatcher", my_node_tag="node-3"} 567502.0
Finally you will be able to aggregate:
rate(akka_cluster_sharding_region_hosted_shards_sum{type="Dispatcher", my_node_tag="node-1"}[interval]) / rate(akka_cluster_sharding_region_hosted_shards_count{type="Dispatcher", my_node_tag="node-1"}[interval])
Hi, I've just upgraded kamon-akka-remote dependency to play with metrics about sharding. After deploying changes to test cluster I've tried to check returned values and compare them with e.g. information about sharding exposed in akka management extension API
I have cluster with 3 nodes, below informations about shard region with Distpacher name on each node:
Informations from kamon-akka-remote sharding metrics returned using Prometheus integration:
I'm not able to analyse this metrics and get any meaningful informations from them. Is it possible to receive some guidance what this numbers stand for?
Can I somehow extract how many entities are in each node based on metrics from kamon-akka-remote? From akka mgmt API I see that on first node I have 7 shard entities:
Thank you for any insights or advice
Regards, Sebastian