diff --git a/docs/sources/reference/scripting.md b/docs/sources/reference/scripting.md index 6e8c25c0196..45158eeadcd 100644 --- a/docs/sources/reference/scripting.md +++ b/docs/sources/reference/scripting.md @@ -8,8 +8,9 @@ page_keywords: grafana, scripted, guide, documentation If you have lots of metric names that change (new servers etc) in a defined pattern it is irritating to constantly have to create new dashboards. -With scripted dashboards you can dynamically create your dashboards using javascript. In the folder grafana install folder _app/dashboards/_ there is a file named _scripted.js_. This file contains an example of a scripted dashboard. You can access it by using the url: -> http://grafana_url/#/dashboard/script/scripted.js?rows=3&name=myName +With scripted dashboards you can dynamically create your dashboards using javascript. In the folder grafana install folder +under `public/dashboards/` there is a file named `scripted.js`. This file contains an example of a scripted dashboard. You can access it by using the url: +`http://grafana_url/dashboard/script/scripted.js?rows=3&name=myName` If you open scripted.js you can see how it reads url paramters from ARGS variable and then adds rows and panels. @@ -58,4 +59,4 @@ return dashboard; ## More examples -You can find more examples in `app/dashboards/` directory of your grafana installation. +You can find more examples in `public/dashboards/` directory of your grafana installation. diff --git a/docs/sources/reference/sharing.md b/docs/sources/reference/sharing.md index 1d613aaddf5..16ddcd8f01b 100644 --- a/docs/sources/reference/sharing.md +++ b/docs/sources/reference/sharing.md @@ -40,5 +40,6 @@ Example: ```html ``` + Below there should be an interactive Grafana graph embedded in an iframe: - +