In this section, you can change the text with the value of metric.
You can select the method of selection for the field "What" :
- by the uniq ID of shapes.
- by the value of the text (experimental).
If checked, the field "What" accepts a regular expression (less efficient) like this :
/.*My label.*/
- : Remove line/shapes from current rule
- : Hide and ignore line from current rule
- : Click on it to select shapes/object in panel and auto fill input with id object.
Enter the id or text of shape, if the field "regular expression" is checked, regular expression is accepted but less efficient for performance.
You can target/select the shape by clicking on link button.
Define condition when text/values is displayed.
- Never : Hide text
- When metric displayed : Show data if serie not empty.
- Warning/Critical : Display value instead original selected text if non OK.
- Critical only : Same, but only if state is critical.
Define which part of text is replaced vy values.
- All content : Replace all text by the formatted value.
- Substring : only a part of string with a regular expression in field "with"
- Append (new line) : Append formated value with a carriage return.
- Append (new line) : Append formated value with a space at right.
Enter a regular expression when substring is selected.
Original text = "Number of sessions : VALUE".
Change "VALUE" with this pattern "/VALUE/" and keep string before.
https://play.grafana.org/d/VbE3_jqZz/flowcharting-options-demo?orgId=1