How to display the max value over time?
jaimeiniesta opened this issue · 1 comments
jaimeiniesta commented
Hi there!
I'm using value_over_time
to display my duration measures, but I'd like to detect peaks.
How can I display the max_value
instead of the average value
?
simonprev commented
I just pushed an option to do just that, configure the "aggregate" used in the timeseries chart:
value_over_time("phoenix.router_dispatch.stop.duration",
description: "Requests duration over time",
unit: {:native, :millisecond},
options: %{aggregate: "max", aggregate_label: "Max"},
ui_options: [unit: "ms"]
),
the aggregate is an operation mapped directly in Vega-lite: https://vega.github.io/vega-lite/docs/aggregate.html#ops