scylladb / scylla-monitoring

Simple monitoring of Scylla with Grafana
https://scylladb.github.io/scylla-monitoring/
Apache License 2.0
240 stars 143 forks source link

scylla-detailed: Support latencies aggregation function #2350

Closed amnonh closed 4 months ago

amnonh commented 4 months ago

Latencies metrics have different behavior than other metrics.

For example, when looking at P95 and P99  quantile at a shard vs. instance level, you cannot deduce one from the other.

This patch extends the current behavior. When the aggregation function is set to sum (meaningless when looking at latencies), the behavior would be the same. When using all other aggregation functions, it would be done over the shard-specific latencies.

Known limitation, you can not use aggregation function on shard level view.

Fixes #1741