How to dynamically display content in a user interface


I want to dynamically display some content on the interface, similar to the CPU usage monitoring feature in Stanford Sherlock.

They seemed to have created their own widget and added it to their dashboard. Here are the docs on how to add widgets to the dashboard, though I don’t know the code that generated this, because the files are ERB parsed you can do all sorts of computations in ruby before/while you’re rendering the HTML.

https://osc.github.io/ood-documentation/latest/customizations.html#custom-layouts-in-the-dashboard

Thks. Just use grafana dashboard directly under widget.

<iframe
    src="*"
    width="100%"
    height="400"
    frameborder="0"
    style="border: none; background: transparent;">
</iframe>