49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
// Sample configuration for the LMA dashboard
|
|
// Copy this file to your Grafana source directory
|
|
define(['settings'], function(Settings) {
|
|
|
|
return new Settings({
|
|
datasources: {
|
|
influxdb: {
|
|
type: 'influxdb',
|
|
<% if @influxdb_host %>
|
|
url: "http://<%= @influxdb_host %>:8086/db/<%= @influxdb_dbname %>",
|
|
<% else %>
|
|
url: "http://" + window.location.hostname + ":8086/db/<%= @influxdb_dbname %>",
|
|
<% end %>
|
|
username: "<%= @influxdb_username %>",
|
|
password: "<%= @influxdb_userpass %>",
|
|
},
|
|
grafana: {
|
|
type: 'influxdb',
|
|
url: "http://" + <%= @influxdb_host %> + ":8086/db/grafana",
|
|
username: "<%= @influxdb_username %>",
|
|
password: "<%= @influxdb_userpass %>",
|
|
grafanaDB: true
|
|
},
|
|
},
|
|
|
|
search: {
|
|
max_results: 100
|
|
},
|
|
|
|
default_route: '/dashboard/file/lma.json',
|
|
|
|
unsaved_changes_warning: true,
|
|
|
|
playlist_timespan: "1m",
|
|
|
|
admin: {
|
|
password: ''
|
|
},
|
|
|
|
window_title_prefix: 'LMA - ',
|
|
|
|
plugins: {
|
|
panels: [],
|
|
dependencies: [],
|
|
}
|
|
|
|
});
|
|
});
|