/
grafanaConfig.js
76 lines (64 loc) · 2.14 KB
/
grafanaConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/** @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 Grafana is run for the first time.
*/
define(['settings'],
function (Settings) {
"use strict";
return new Settings({
/**
* elasticsearch url:
* For Basic authentication use: http://username:password@domain.com:9200
*/
elasticsearch: "http://192.168.56.108:9200",
/**
* graphite-web url:
* For Basic authentication use: http://username:password@domain.com
* 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://192.168.56.108",
/**
* Multiple graphite servers? Comment out graphiteUrl and replace with something like this:
datasources: {
data_center_us: {
type: 'graphite',
url: 'http://<graphite_url>',
default: true
},
data_center_eu: {
type: 'graphite',
url: 'http://<graphite_url>',
render_method: 'GET' // optional, use this to change render calls from POST to GET
}
},
*/
default_route: '/dashboard/file/default.json',
/**
* If you experiance problems with zoom, it is probably caused by timezone diff between
* your browser and the graphite-web application. timezoneOffset setting can be used to have Grafana
* translate absolute time ranges to the graphite-web timezone.
* Example:
* If TIME_ZONE in graphite-web config file local_settings.py is set to America/New_York, then set
* timezoneOffset to "-0500" (for UTC - 5 hours)
* Example:
* If TIME_ZONE is set to UTC, set this to "0000"
*/
timezoneOffset: null,
/**
* Elasticsearch index for storing dashboards
*
*/
grafana_index: "grafana-dash",
/**
* set to false to disable unsaved changes warning
*/
unsaved_changes_warning: true,
panel_names: [
'text',
'graphite'
]
});
});