forked from tutumcloud/grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
36 lines (33 loc) · 893 Bytes
/
config.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
define(['settings'],
function (Settings) {
return new Settings({
//elasticsearch: "http://"+window.location.hostname+":9200",
datasources: {
influxdb: {
type: 'influxdb',
url: "/influxdb/db/<--DB_NAME-->",
username: '<--USER-->',
password: '<--PASS-->',
default: true
}
grafana:{
type: 'influxdb',
url: "/influxdb/db/<--GRAFANADB-->",
username: '<--USER-->',
password: '<--PASS-->',
grafanaDB: true
}
},
// 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",
// Add your own custom pannels
plugins: {
panels: []
}
});
});