grafana/src/config.sample.js

43 lines
1.2 KiB
JavaScript
Raw Normal View History

/** @scratch /configuration/config.js/1
* == Configuration
* config.js is where you will find the core Grafana configuration. This file contains parameter that
* must be set before kibana is run for the first time.
2013-09-14 04:52:13 +08:00
*/
define(['settings'],
function (Settings) {
"use strict";
return new Settings({
2014-02-01 16:03:51 +08:00
/**
* elasticsearch url:
* For Basic authentication use: http://username:password@domain.com:9200
*/
elasticsearch: "http://"+window.location.hostname+":9200",
2013-09-14 04:52:13 +08:00
/**
2014-02-01 16:03:51 +08:00
* graphite-web url:
* For Basic authentication use: http://username:password@domain.com
2014-02-01 16:03:51 +08:00
* Basic authentication requires special HTTP headers to be configured
* in nginx or apache for cross origin domain sharing to work (CORS).
* Check install documentation on github
*/
graphiteUrl: "http://"+window.location.hostname+":8080",
2014-01-19 23:13:28 +08:00
default_route: '/dashboard/file/default.json',
/**
* If your graphite server has another timezone than you & users browsers specify the offset here
* Example: "-0500" (for UTC - 5 hours)
*/
timezoneOffset: null,
grafana_index: "grafana-dash",
2013-09-14 04:52:13 +08:00
panel_names: [
'text',
2013-12-07 21:40:14 +08:00
'graphite'
2013-09-14 04:52:13 +08:00
]
});
});