Hi there!
I try to create a chart that should show percentage of several events. So I use such metrics:
sum(ts(my.*.metric.1.count, source=my-source)) / sum(ts(my.*.metric.*.count, source=my-source))*100
sum(ts(my.*.metric.2.count, source=my-source)) / sum(ts(my.*.metric.*.count, source=my-source))*100
sum(ts(my.*.metric.3.count, source=my-source)) / sum(ts(my.*.metric.*.count, source=my-source))*100
But I have the notification like this:
- The expression: "ts(my.*.metric.*.count, source=my-source)" has been pre-aligned, making it equivalent to "align(120s, mean, ts(my.*.metric.*.count, source=my-source))" in order to improve the performance of the sum() aggregation operation. You can wrap the expression with align() to explicitly state the periodicity and desired summarization strategy.
And my chart show some magic numbers.
Also I have similar chart with percentage and similar metrics:
sum(ts(my.metric.1.count, source=my-source)) / sum(ts(my.metric.*.count, source=my-source))*100
sum(ts(my.metric.2.count, source=my-source)) / sum(ts(my.metric.*.count, source=my-source))*100
sum(ts(my.metric.3.count, source=my-source)) / sum(ts(my.metric.*.count, source=my-source))*100
So this one looks great.
So the question is: What is wrong with chart using pre-aligned metrics? Does it try to summarize too many metrics? How should I fix it?