Function Example - Visualize the differences using top() by mean / max / min / area / l2norm

The top() function selects the "top" series responsive to a given query, according to some ranking method. It takes four parameters:

  • a metric query string with some grouping, e.g. avg:system.cpu.idle{*} by {host}
  • the number of series to be displayed, as an integer.
  • one of 'max', 'min', 'last', 'l2norm', or 'area'. 'area' is the signed area under the curve being graphed, which can be negative. 'l2norm' uses the L2 Norm of the time series, which is always positive, to rank the series.
  • either 'desc' (rank the results in descending order) or 'asc' (ascending order).

Here are examples of the same dataset using different options:

Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk