Apart from adding widgets to widget definitions for permanent use, widgets can be temporarily added to the dashboard using a simple GUI.
You can enable the GUI feature by changing the constant
true in the file
Once enabled follow these steps to add a custom widget with a metric on the dashboard.
Caution: The dashboard will reload as soon as you add a custom widget, so prevailing data will be lost.
You can add as many custom widgets needed, they will appear under Widgets dropdown under the Custom tag.