',
+ username: 'test',
+ password: 'test',
+ },
+ 'grafana': {
+ type: 'influxdb',
+ url: 'http://my_influxdb_server:8086/db/grafana',
+ username: 'test',
+ password: 'test',
+ grafanaDB: true
+ },
+},
+```
+In the above example you see two InfluxDB datasources, one for metrics and a seperate used for dashboard storage. You can use the same InfluxDB
+database for both. But it is probably a good idea to keep them seperate. The InfluxDB databases need to exist, grafana does not create
+them.
+
+### Graphite & Elasticsearch setup example
+
+```javascript
+datasources: {
+ graphite: {
+ type: 'graphite',
+ url: "http://my.graphite.server.com:8080",
+ },
+ elasticsearch: {
+ type: 'elasticsearch',
+ url: "http://my.elastic.server.com:9200",
+ index: 'grafana-dash',
+ grafanaDB: true,
+ }
+},
+```
+If you use Graphite you need Elasticsearch if you want to store & search dashboards. You can also use json and scripted dashboards if
+you really do not want to setup Elasticsearch.
+
+### OpenTSDB & Elasticsearch setup example
+
+```javascript
+datasources: {
+ opentsdb: {
+ type: 'opentsdb',
+ url: "http://my.opentsdb.server.com:4242",
+ },
+ elasticsearch: {
+ type: 'elasticsearch',
+ url: "http://my.elastic.server.com:9200",
+ index: 'grafana-dash',
+ grafanaDB: true,
+ }
+},
+```
+Please view [this page](/docs/features/opentsdb) for details on how to configure OpenTSDB to work with Grafana.
+
+### Elasticsearch & CORS
+As of Elasticsearch v1.4 CORS is disabled by default. This needs to be enabled in the Elasticsearch config file, otherwise grafana will not be able to access Elasticsearch.
+
+```
+http.cors.enabled: true
+http.cors.allow-origin: *
+```
+
+Instead of the wildcard you can put your full grafana webserver address (including http:// and port)
+
+### Basic authentication
+If your Graphite or Elasticsearch server require basic authentication you can specify the username and password in the url.
+For example `"http://admin:secret@my.graphite.com"`
+
+## Global configuration options
+
+```javascript
+// specify the limit for dashboard search results
+search: {
+ max_results: 20
+},
+
+// default start dashboard
+default_route: '/dashboard/file/default.json',
+
+// set to false to disable unsaved changes warning
+unsaved_changes_warning: true,
+
+// set the default timespan for the playlist feature
+// Example: "1m", "1h"
+playlist_timespan: "1m",
+
+// If you want to specify password before saving, please specify it bellow
+// The purpose of this password is not security, but to stop some users from accidentally changing dashboards
+admin: {
+ password: ''
+},
+
+// Add your own custom pannels
+plugins: {
+ panels: []
+}
+```
+
+## Graphite server config
+If you haven't used an alternative dashboard for graphite before you need to enable CORS (Cross Origin Resource Sharing).
+This is only required if Grafana is hosted on a different web domain from your graphite-web.
+
+For Apache 2.x:
+
+```javascript
+Header set Access-Control-Allow-Origin "*"
+Header set Access-Control-Allow-Methods "GET, OPTIONS"
+Header set Access-Control-Allow-Headers "origin, authorization, accept"
+```
+
+Note that using `"*"` leaves your graphite instance quite open so you might want to consider
+using `"http://my.grafana.com"` in place of `"*"`
+
+If your Graphite web is proteced by basic authentication, you have to enable the HTTP verb OPTIONS. Take note that
+when using basic auth **Access-Control-Allow-Origin** must not be set to a wildcard, also the header
+**Access-Control-Allow-Credentials** must be specified. This looks like the following for Apache:
+
+```html
+Header set Access-Control-Allow-Origin "http://mygrafana.com:5656"
+Header set Access-Control-Allow-Methods "GET, OPTIONS"
+Header set Access-Control-Allow-Headers "origin, authorization, accept"
+Header set Access-Control-Allow-Credentials true
+
+
+ AuthName "graphs restricted"
+ AuthType Basic
+ AuthUserFile /etc/apache2/htpasswd
+
+ require valid-user
+
+
+```
+
+For nginx:
+
+```javascript
+auth_basic "Restricted";
+auth_basic_user_file /path/to/my/htpasswd/file;
+
+if ($http_origin ~* (https?://[^/]*\.somedomain\.com(:[0-9]+)?)) { #Test if request is from allowed domain, you can use multiple if
+ set $cors "true"; #statements to allow multiple domains, simply setting $cors to true in each one.
+}
+
+if ($cors = 'true') {
+ add_header Access-Control-Allow-Origin $http_origin; #this mirrors back whatever domain the request came from as authorized, as
+ add_header "Access-Control-Allow-Credentials" "true"; #as long as it matches one of your if statements
+ add_header "Access-Control-Allow-Methods" "GET, OPTIONS";
+ add_header "Access-Control-Allow-Headers" "Authorization, origin, accept";
+}
+```
diff --git a/docs/sources/installation/performance.md b/docs/sources/installation/performance.md
new file mode 100644
index 00000000000..535cf72a228
--- /dev/null
+++ b/docs/sources/installation/performance.md
@@ -0,0 +1,16 @@
+---
+page_title: Performance Tips
+page_description: Grafana performance tips
+page_keywords: grafana, performance, documentation
+---
+
+# Performance tips
+
+## Graphite
+
+Graphite 0.9.13 adds a much needed feature to the json rendering API that is very important for Grafana. If you are experiance slow
+load & rendering times for large time ranges then it is most likely caused by running Graphite 0.9.12 or lower. The latest version
+of Graphite adds a maxDataPoints parameter to the json render API, without this feature Graphite can return hundreds of thousands of data points per graph, which
+can hang your browser. Be sue to upgrade to [0.9.13](http://graphite.readthedocs.org/en/latest/releases/0_9_13.html).
+
+
diff --git a/docs/sources/installation/provisioning.md b/docs/sources/installation/provisioning.md
new file mode 100644
index 00000000000..b7324721e58
--- /dev/null
+++ b/docs/sources/installation/provisioning.md
@@ -0,0 +1,32 @@
+---
+page_title: Provisioning
+page_description: Grafana provisioning
+page_keywords: grafana, provisioning, documentation
+---
+
+# Provisioning
+
+Here are links for how to install Grafana (and some include graphite or influxdb as well) via a provisioning
+system. These are not maintained by any core Grafana team member and might be out of date.
+
+## Puppet
+
+* [forge.puppetlabs.com/bfraser/grafana](https://forge.puppetlabs.com/bfraser/grafana)
+
+## Ansible
+
+* [github.com/bobrik/ansible-grafana](https://github.com/bobrik/ansible-grafana)
+* [github.com/bitmazk/ansible-digitalocean-influxdb-grafana](https://github.com/bitmazk/ansible-digitalocean-influxdb-grafana)
+
+## Docker
+
+* [github.com/kamon-io/docker-grafana-graphite](https://github.com/kamon-io/docker-grafana-graphite)
+* [github.com/kamon-io/docker-grafana-influxdb](https://github.com/kamon-io/docker-grafana-influxdb)
+* [github.com/tutumcloud/tutum-docker-grafana](https://github.com/tutumcloud/tutum-docker-grafana)
+* [github.com/mingfang/docker-grafana](https://github.com/mingfang/docker-grafana)
+
+## Chef
+
+* [github.com/JonathanTron/chef-grafana](https://github.com/JonathanTron/chef-grafana)
+* [github.com/dzautner/grafana-cookbook](https://github.com/dzautner/grafana-cookbook)
+
diff --git a/docs/sources/installation/troubleshooting.md b/docs/sources/installation/troubleshooting.md
new file mode 100644
index 00000000000..9d0605f5eee
--- /dev/null
+++ b/docs/sources/installation/troubleshooting.md
@@ -0,0 +1,48 @@
+page_title: Troubleshooting
+page_description: Troubleshooting
+page_keywords: grafana, support, documentation
+
+# Troubleshooting
+
+This page is dedicated to helping you solve any problem you have getting Grafana to work. Please review it before
+opening a new github issue or asking a question in #grafana on freenode.
+
+## General connection issues
+When setting up Grafana for the first time you might experiance issues with Grafana being unable to query Graphite, OpenTSDB or InfluxDB.
+You might not be able to get metric name completion or the graph might show an error like this:
+
+![](/img/v1/graph_timestore_error.png)
+
+For some type of errors the ``View details`` link will show you error details. But for many types of HTTP connection errors there is
+very little information. The best way to troubleshoot these issues is use
+[Chrome developer tools](https://developer.chrome.com/devtools/index). By pressing F12 you can bring up the chrome dev tools.
+
+![](/img/v1/toubleshooting_chrome_dev_tools.png)
+
+There are two important tabs in the chrome dev tools, ``Network`` and ``Console``. Console will show you javascript errors and HTTP
+request errors. In the Network tab you will be able to identifiy the request that failed and review request and response parameters.
+This information will be of great help in finding the cause of the error. If you are unable to solve the issue, even after reading
+the remainder of this troubleshooting guide, you may open a [github support issue](https://github.com/grafana/grafana/issues).
+Before you do that please search the existing closed or open issues. Also if you need to create a support issue,
+screenshots and or text information about the chrome console error, request and response information from the network tab in chrome
+developer tools are of great help.
+
+### Inspecting Grafana metric requests
+![](/img/v1/toubleshooting_chrome_dev_tools_network.png)
+
+After open chrome developer tools for the first time the Network tab is empty you need to refresh the page to get requests to show.
+For some type of errors (CORS related) there might not be a response at all.
+
+## Graphite connection issues
+If your Graphite web server is on another domain or IP than your Grafana web server you will need to [setup
+CORS](../install/#graphite-server-config) (Cross Origin Resource Sharing).
+
+You know if you are having CORS related issues if you get an error like this in chrome developer tools:
+
+![](/img/v1/toubleshooting_graphite_cors_error.png)
+
+If the request failed on method ``OPTIONS`` then you need to review your graphite web server configuration.
+
+## Only blank white page
+When you load Grafana and all you get is a blank white page then you probably have a javascript syntax error in ``config.js``.
+In chrome developer tools console you will quickly identify the line of the syntax error.
diff --git a/docs/sources/jsearch.md b/docs/sources/jsearch.md
new file mode 100644
index 00000000000..56e9b7c48f5
--- /dev/null
+++ b/docs/sources/jsearch.md
@@ -0,0 +1,15 @@
+page_title: Search the Grafana documentation
+page_keywords: Grafana, search documentation
+no_toc: true
+no_version_dropdown: true
+
+# Search
+
+
+
+
+Sorry, page not found.
+
diff --git a/docs/sources/screencasts/feature_tour/index.html.slim b/docs/sources/screencasts/feature_tour/index.html.slim
new file mode 100644
index 00000000000..777c49c729f
--- /dev/null
+++ b/docs/sources/screencasts/feature_tour/index.html.slim
@@ -0,0 +1,12 @@
+
+
+h1 Grafana video tour
+
+.row
+ .panel.callout
+ | This video will show you some of the basic features like building graphs and dashboards. It is a little outdated, the function
+ | editor has been much improved since this video was made.
+
+.row
+ iframe width="513" height="317" src="//www.youtube.com/embed/OUvJamHeMpw?vq=hd1080" frameborder="0" allowfullscreen="1"
+
diff --git a/docs/sources/screencasts/function_editor/index.html.slim b/docs/sources/screencasts/function_editor/index.html.slim
new file mode 100644
index 00000000000..e51878e53ff
--- /dev/null
+++ b/docs/sources/screencasts/function_editor/index.html.slim
@@ -0,0 +1,11 @@
+
+
+h1 Grafana 1.5 Function editor
+
+.row
+ .panel.callout
+ | This video demos the new Graphite function editor that was introduced in Grafana v1.5
+
+.row
+ iframe width="513" height="317" src="//www.youtube.com/embed/I90WHRwE1ZM?vq=hd1080" frameborder="0" allowfullscreen="1"
+
diff --git a/docs/sources/screencasts/index.md b/docs/sources/screencasts/index.md
new file mode 100644
index 00000000000..07f9801e9f8
--- /dev/null
+++ b/docs/sources/screencasts/index.md
@@ -0,0 +1,16 @@
+page_title: Screencasts
+page_description: Grafana screencasts
+page_keywords: grafana, screencasts, documentation, guides
+
+# Screencasts
+
+## Grafana Screencasts - Episode 2 - Templated Graphite Queries
+
+
+
+## Grafana Screencasts - Episode 1 - Building Graphite Queries
+
+
+
+
+
diff --git a/docs/sources/search.md b/docs/sources/search.md
new file mode 100644
index 00000000000..0e2e13fb08c
--- /dev/null
+++ b/docs/sources/search.md
@@ -0,0 +1,10 @@
+# Search
+
+*Please activate JavaScript to enable the search functionality.*
+
+## How To Search
+
+From here you can search these documents. Enter your search words into
+the box below and click "search". Note that the search function will
+automatically search for all of the words. Pages containing fewer words
+won't appear in the result list.
diff --git a/docs/sources/support/index.md b/docs/sources/support/index.md
new file mode 100644
index 00000000000..cf68fb5f19a
--- /dev/null
+++ b/docs/sources/support/index.md
@@ -0,0 +1,20 @@
+page_title: Support
+page_description: Support options for Grafana.
+page_keywords: grafana, support, documentation
+
+# Support
+
+If you have any trouble with Grafana, either the install or some feature you do not understand or you suspect isn't working
+correctly there are a number of sources where you can get help.
+
+- [Troubleshooting guide](../troubleshooting)
+- \#grafana IRC channel on freenode
+- Search closed and open [issues on github](https://github.com/grafana/grafana/issues).
+- [Mailing list](https://groups.io/org/groupsio/grafana)
+
+Do not hesitate to open a new issue with a question, bug report or an idea for improvement.
+
+User feedback and involvement is paramount to making a product better so please take the time and create an issue.
+
+## Paid support
+If you wish to get paid support please [contact us](mailto:contact@grafana.org).
diff --git a/docs/sources/test.md b/docs/sources/test.md
new file mode 100644
index 00000000000..8202105a8eb
--- /dev/null
+++ b/docs/sources/test.md
@@ -0,0 +1,4 @@
+
+# Test
+
+## Google
diff --git a/docs/sources/versions.html_fragment b/docs/sources/versions.html_fragment
new file mode 100644
index 00000000000..00ee000a0f0
--- /dev/null
+++ b/docs/sources/versions.html_fragment
@@ -0,0 +1,2 @@
+Version v2.0
+Version v1.9