Skip to content

Instantly share code, notes, and snippets.

@viglesiasce
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save viglesiasce/ca267764a190e56b8be7 to your computer and use it in GitHub Desktop.

Select an option

Save viglesiasce/ca267764a190e56b8be7 to your computer and use it in GitHub Desktop.
grafana_config.js
define(['settings'],
function (Settings) {
return new Settings({
datasources: {
influxdb: {
type: 'influxdb',
url: "http://localhost:8086/db/locust",
username: 'admin',
password: 'admin',
default: true
},
grafana: {
type: 'influxdb',
url: "http://localhost:8086/db/grafana",
username: 'admin',
password: 'admin',
grafanaDB: true
},
},
search: {
max_results: 20
},
default_route: '/dashboard/file/locust.json',
unsaved_changes_warning: true,
playlist_timespan: "1m",
admin: {
password: ''
},
window_title_prefix: 'Grafana - ',
plugins: {
panels: [],
dependencies: [],
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment