Skip to content

Instantly share code, notes, and snippets.

@akhenakh
Created October 28, 2014 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akhenakh/39e1950bf95859878748 to your computer and use it in GitHub Desktop.
Save akhenakh/39e1950bf95859878748 to your computer and use it in GitHub Desktop.
Grafana demo
define(['settings'],
function (Settings) {
return new Settings({
datasources: {
influx: {
type: 'influxdb',
url: 'http://localhost:8086/db/test',
username: 'root',
password: 'root',
},
grafana: {
type: 'influxdb',
url: 'http://localhost:8086/db/grafana',
username: 'root',
password: 'root',
grafanaDB: true
},
},
// specify the limit for dashboard search results
search: {
max_results: 20
},
// 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",
// If you want to specify password before saving, please specify it bellow
// The purpose of this password is not security, but to stop some users from accidentally changing dashboards
admin: {
password: ''
},
// Add your own custom pannels
plugins: {
panels: []
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment