We are trying to display the following in Grafana using the Bosun/OpenTSDB data source:
a. Hosts in descending order in terms of Top-n Load
b. Top 10 memory consuming processes
c. Top CPU usage consuming processes
However, we could not find suitable metrics for it.
How can this information be displayed?
Secondly, if the metrics are not available in Bosun/OpenTSDB, then how should you create or define new metrics for them?
Overview
limit(),sort(), andfilter()functions as documented in Bosun's Expression DocumentationTable Example
For example, you could have an expression like the following for a table of top CPU:
note: sort is called twice so the table has a default sorting of by value
Graph Example
If you wanted to do a Graph panel instead of a table, you could use the
filter():