compass-web/v2/dash/config.js
Lawrence Davison ae0b5d746a UI changes for cluster sup phase one
Conflicts:
	v2/dash/app/app.20ee1677.js
	v2/dash/app/app.js
	v2/dash/config.js

Change-Id: I415d9d5c36afbe44afad056cf9f617aa2c313300
2014-10-02 19:37:00 -07:00

77 lines
2.1 KiB
JavaScript

///// @scratch /configuration/config.js/1
// == Configuration
// config.js is where you will find the core Metrics configuration. This file contains parameter that
// must be set before Metrics is run for the first time.
///
define(['settings'],
function (Settings) {
return new Settings({
// datasources, you can add multiple
datasources: {
metricsdb: {
type: 'kairosdb',
//url: "http://metrics:8080",
//url: "http://localhost",
url: "/monit/api/v1",
default: true
},
/*
datasources: {
graphite: {
type: 'graphite',
url: "http://my.graphite.server.com:8080",
default: true
},
influxdb: {
type: 'influxdb',
url: "http://my_influxdb_server:8086/db/database_name",
username: 'admin',
password: 'admin'
},
*/
},
// elasticsearch url
// used for storing and loading dashboards, optional
// For Basic authentication use: http://username:password@domain.com:9200
elasticsearch: "http://"+window.location.hostname+":9200",
// elasticsearch: "http://elasticsearch:9200",
// default start dashboard
default_route: '/dashboard/file/default.json',
// Elasticsearch index for storing dashboards
grafana_index: "compass-met-dash",
// timezoneOFfset:
// 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,
// 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: [
]
}
});
});