table
table copied to clipboard
[Benchmarks] Support the display of benchmarks through thresholds
Goal
Show the benchmark icon on the top-right corner based on the configured thresholds
Description
This requires users to
-
define the thresholds for the metrics as below
- For the first step, the absolute threshold is enough
- In addition to the screenshot, allow users to choose the emoji for each threshold
Please refer to Grafana's doc for more information: https://grafana.com/docs/grafana/latest/panels-visualizations/configure-thresholds/
-
Display the emoji at the top-right corner of a panel
- Support it in the Cartesian Chart and Stats chart. For the Cartesian chart, the level depends on which threshold/bucket the avg number of metrics falls into.
- Provide an option for users to decide whether to show the emoji on the panel.
- When hovering on the emoji, show the full thresholds (i.e. benchmarks) in readable language.
After discussion, actual requirements are these
Variable
- add Threshold aggregation
Panel Description
- add Show Description checkbox
- able to use panel variables in panel description
- able to customize panel description's trigger icon
- able to use current threshold range's icon as panel description's trigger icon
5.8 Updates: As there are disputes regarding the solutions, the new conclusion is that we'll implement a private component for this feature and see if it works out.