|
1 |
| -/** @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 |
| - */ |
| 1 | +///// @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 Grafana is run for the first time. |
| 5 | + /// |
6 | 6 | define(['settings'],
|
7 | 7 | function (Settings) {
|
8 | 8 |
|
9 |
| - return new Settings({ |
10 | 9 |
|
11 |
| - /** |
12 |
| - * elasticsearch url: |
13 |
| - * For Basic authentication use: http://username:[email protected]:9200 |
14 |
| - */ |
15 |
| - elasticsearch: "/elasticsearch", |
16 |
| - |
17 |
| - /** |
18 |
| - * graphite-web url: |
19 |
| - * For Basic authentication use: http://username:[email protected] |
20 |
| - * Basic authentication requires special HTTP headers to be configured |
21 |
| - * in nginx or apache for cross origin domain sharing to work (CORS). |
22 |
| - * Check install documentation on github |
23 |
| - */ |
24 |
| - graphiteUrl: "/graphite", |
25 |
| - |
26 |
| - /** |
27 |
| - * Multiple graphite servers? Comment out graphiteUrl and replace with |
28 |
| - * |
29 |
| - * datasources: { |
30 |
| - * data_center_us: { type: 'graphite', url: 'http://<graphite_url>', default: true }, |
31 |
| - * data_center_eu: { type: 'graphite', url: 'http://<graphite_url>' } |
32 |
| - * } |
33 |
| - */ |
| 10 | + return new Settings({ |
34 | 11 |
|
| 12 | + // datasources, you can add multiple |
| 13 | + datasources: { |
| 14 | + graphite: { |
| 15 | + type: 'graphite', |
| 16 | + url: "/graphite", |
| 17 | + default: true |
| 18 | + } |
| 19 | + }, |
| 20 | + |
| 21 | + // elasticsearch url |
| 22 | + // used for storing and loading dashboards, optional |
| 23 | + // For Basic authentication use: http://username:password@domain.com:9200 |
| 24 | + elasticsearch: '/elasticsearch', //"http://"+window.location.hostname+":9200", |
| 25 | + |
| 26 | + // default start dashboard |
35 | 27 | default_route: '/dashboard/file/default.json',
|
36 | 28 |
|
37 |
| - /** |
38 |
| - * If your graphite server has another timezone than you & users browsers specify the offset here |
39 |
| - * Example: "-0500" (for UTC - 5 hours) |
40 |
| - */ |
41 |
| - timezoneOffset: null, |
42 |
| - |
| 29 | + // Elasticsearch index for storing dashboards |
43 | 30 | grafana_index: "grafana-dash",
|
44 | 31 |
|
45 |
| - panel_names: [ |
46 |
| - 'text', |
47 |
| - 'graphite' |
48 |
| - ] |
| 32 | + // timezoneOFfset: |
| 33 | + // If you experiance problems with zoom, it is probably caused by timezone diff between |
| 34 | + // your browser and the graphite-web application. timezoneOffset setting can be used to have Grafana |
| 35 | + // translate absolute time ranges to the graphite-web timezone. |
| 36 | + // Example: |
| 37 | + // If TIME_ZONE in graphite-web config file local_settings.py is set to America/New_York, then set |
| 38 | + // timezoneOffset to "-0500" (for UTC - 5 hours) |
| 39 | + // Example: |
| 40 | + // If TIME_ZONE is set to UTC, set this to "0000" |
| 41 | + // |
| 42 | + timezoneOffset: 0000, |
| 43 | + |
| 44 | + // set to false to disable unsaved changes warning |
| 45 | + unsaved_changes_warning: true, |
| 46 | + |
| 47 | + // set the default timespan for the playlist feature |
| 48 | + // Example: "1m", "1h" |
| 49 | + playlist_timespan: "1m", |
| 50 | + |
| 51 | + // Add your own custom pannels |
| 52 | + plugins: { |
| 53 | + panels: [] |
| 54 | + } |
| 55 | + |
49 | 56 | });
|
50 | 57 | });
|
51 |
| - |
|
0 commit comments