From cd089089f75a4ebc0069415fa50e0e3fd69e1460 Mon Sep 17 00:00:00 2001 From: Thomas Anderson Date: Mon, 10 May 2021 10:00:50 -0400 Subject: Remove dash-example, place in community repo (#11077) * Remove dash-example, place in community repo * Remove Makefile reference to dash-example.html --- web/gui/Makefile.am | 1 - web/gui/custom/README.md | 62 --- web/gui/dash-example.html | 1055 --------------------------------------------- 3 files changed, 1118 deletions(-) delete mode 100644 web/gui/dash-example.html diff --git a/web/gui/Makefile.am b/web/gui/Makefile.am index c69380f934..7901884e2f 100644 --- a/web/gui/Makefile.am +++ b/web/gui/Makefile.am @@ -67,7 +67,6 @@ dist_web_DATA = \ refresh-badges.js \ sitemap.xml \ tv.html \ - dash-example.html \ version.txt \ $(NULL) diff --git a/web/gui/custom/README.md b/web/gui/custom/README.md index e6f531bd77..323f1b56b2 100644 --- a/web/gui/custom/README.md +++ b/web/gui/custom/README.md @@ -69,70 +69,8 @@ header: ``` -## Dash (Multi-Host Dashboard) - -`dash-example.html` is an all-in-one page that automatically fetches graphs from all your hosts. Just add your graphs and charts (or use the defaults) one time using the `dash-*` syntax, and your selections will be automatically replicated for all of your hosts; showing alarms and graphs for all your hosts on **one page!** - -__**Dash will only work if you have implemented netdata streaming using `stream.conf`. It is not part of Netdata Cloud.**__ - -`dash-example.html` was created as an experiment to demonstrate the capabilities of netdata in a multi-host environment. If you desire more features, submit a pull request or check out Netdata Cloud! - -### Configure Dash - -First, rename the file so it doesn't get overwritten. For instance, with a webroot at `/usr/share/netdata/web`: -```bash -cp /usr/share/netdata/web/dash-example.html /usr/share/netdata/web/dash.html -``` - -> NOTE: Ensure the owner/permissions match those in the rest of the files in the directory. Usually `netdata:netdata` and `0644`. - -Find and change the following lines in `dash.html` to reflect your Netdata URLs. The `REVERSE_PROXY_URL` is optional and only used if you access your Netdata dashboard through a reverse proxy. If it is not set, it defaults to the `NETDATA_HOST` URL. - -```js -/** - * Netdata URLS. If you use a reverse proxy, add it and uncomment the line below - */ -NETDATA_HOST = 'https://localhost:19999'; -// REVERSE_PROXY_URL = 'https://my-domain.com/stats' -``` - -### The `dash-*` Syntax - -If you want to change the graphs or styling to fit your needs, just add an element to the page as shown. Child divs will be generated to create your graph/chart, and charts are replicated for each streamed host. -``` -
<---- OPTIONAL: This overrides the default config. Any other data-* attributes will -
be added to the generated div, so you can set any desired options here - -
<---- Use this to override or append default options -
-``` - -To change the sizes of graphs and charts, find the `DASH_OPTIONS` object in `dash.html` and set your preferences: -```js -/* - * Change your graph/chart dimensions here. Host columns will automatically adjust. - * Charts are square! Their width is the same as their height. - */ -DASH_OPTIONS = { - graph_width: '40em', - graph_height: '20em', - chart_width: '10em' // Charts are square -} -``` - -To change the display order of your hosts, which is saved in localStorage, click the settings gear in the lower right corner - -We hope you like it! - --- - ## dashboard.js To add Netdata charts to any web page (dedicated to Netdata or not), you need to diff --git a/web/gui/dash-example.html b/web/gui/dash-example.html deleted file mode 100644 index a47b6e52fd..0000000000 --- a/web/gui/dash-example.html +++ /dev/null @@ -1,1055 +0,0 @@ - - - - - - - - - - - - - - - -
-
-
host
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - -- cgit v1.2.3