diff --git a/docs/widgets.md b/docs/widgets.md index 3cfda213..856d5efe 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -47,6 +47,7 @@ Dashy has support for displaying dynamic content in the form of widgets. There a - [CPU Usage Per Core](#cpu-usage-per-core) - [CPU Usage History](#cpu-usage-history) - [Memory Usage Current](#current-memory-usage) + - [Memory Usage History](#memory-usage-history) - [Dynamic Widgets](#dynamic-widgets) - [Iframe Widget](#iframe-widget) - [HTML Embed Widget](#html-embedded-widget) @@ -1257,6 +1258,30 @@ Real-time memory usage gauge, with more info visible on click --- +### Memory Usage History + +Recent memory usage chart + +
+ +##### Options + +**Field** | **Type** | **Required** | **Description** +--- | --- | --- | --- +**`limit`** | `number` | _Optional_ | Limit the number of results returned, rendering more data points will take longer to load. Defaults to `100` + + +##### Example + +```yaml +- type: gl-mem-history + options: + hostname: http://localhost:61208 + limit: 80 +``` + +--- + ## Dynamic Widgets ### Iframe Widget diff --git a/src/components/Widgets/GlMemHistory.vue b/src/components/Widgets/GlMemHistory.vue new file mode 100644 index 00000000..a874b22f --- /dev/null +++ b/src/components/Widgets/GlMemHistory.vue @@ -0,0 +1,86 @@ + +