The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/common/lib/settings.js

20 lines
550 B

// To add a setting, you MUST define a default.
// THESE ARE ONLY DEFAULTS. They are overridden by config.js in the root directory
var Settings = function (s) {
var _d = {
elasticsearch : "http://"+window.location.hostname+":9200",
modules : [],
kibana_index : 'kibana-int'
}
// This initializes a new hash on purpose, to avoid adding parameters to
// config.js without providing sane defaults
var _s = {};
_.each(_d, function(v, k) {
_s[k] = typeof s[k] !== 'undefined' ? s[k] : _d[k];
});
return _s;
};