blob: 8bbe65b7049dcb55b4584375063adcafd44a6100 [file] [log] [blame]
Ales Komarek9a579052014-02-24 23:14:45 +01001/** @scratch /configuration/config.js/1
2 * == Configuration
3 * config.js is where you will find the core Grafana configuration. This file contains parameter that
4 * must be set before kibana is run for the first time.
5 */
6define(['settings'],
7function (Settings) {
8 "use strict";
9
10 return new Settings({
11
12 /**
13 * elasticsearch url:
14 * For Basic authentication use: http://username:password@domain.com:9200
15 */
16 elasticsearch: "http://{{ pillar.grafana.server.elasticsearch.host }}:{{ pillar.grafana.server.elasticsearch.port }}",
17
18 /**
19 * graphite-web url:
20 * For Basic authentication use: http://username:password@domain.com
21 * Basic authentication requires special HTTP headers to be configured
22 * in nginx or apache for cross origin domain sharing to work (CORS).
23 * Check install documentation on github
24 */
25 graphiteUrl: "http://"+window.location.hostname+":8080",
26
27 /**
28 * Multiple graphite servers? Comment out graphiteUrl and replace with
29 *
30 * datasources: {
31 * data_center_us: { type: 'graphite', url: 'http://<graphite_url>', default: true },
32 * data_center_eu: { type: 'graphite', url: 'http://<graphite_url>' }
33 * }
34 */
35
36 default_route: '/dashboard/file/default.json',
37
38 /**
39 * If your graphite server has another timezone than you & users browsers specify the offset here
40 * Example: "-0500" (for UTC - 5 hours)
41 */
42 timezoneOffset: null,
43
44 grafana_index: "grafana-dash",
45
46 panel_names: [
47 'text',
48 'graphite'
49 ]
50 });
51});