2016-02-13 14:32:20 +01:00
|
|
|
<navbar title="Import" title-url="import/dashboard" icon="fa fa-download">
|
2016-01-29 16:52:30 -05:00
|
|
|
</navbar>
|
2015-01-17 10:39:01 +01:00
|
|
|
|
2015-02-08 10:23:35 +01:00
|
|
|
<div class="page-container">
|
2016-02-19 15:02:10 +01:00
|
|
|
<div class="page-header">
|
|
|
|
<h1>
|
2015-02-23 10:50:50 +01:00
|
|
|
Import file
|
2015-02-28 09:46:37 +01:00
|
|
|
<em style="font-size: 14px;padding-left: 10px;"> <i class="fa fa-info-circle"></i> Load dashboard from local .json file</em>
|
2016-02-19 15:02:10 +01:00
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gf-form-group">
|
|
|
|
<form class="gf-form">
|
|
|
|
<input type="file" id="dashupload" dash-upload/><br>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5 class="page-heading">
|
|
|
|
Migrate dashboards
|
|
|
|
<em style="font-size: 14px;padding-left: 10px;"><i class="fa fa-info-circle"></i> Import dashboards from Elasticsearch or InfluxDB</em>
|
|
|
|
</h5>
|
2015-02-23 10:13:16 +01:00
|
|
|
|
2016-02-19 15:02:10 +01:00
|
|
|
<div class="gf-form-group last">
|
|
|
|
<div class="gf-form">
|
|
|
|
<div class="gf-form-label">Dashboard source</div>
|
|
|
|
<div>
|
2016-02-22 11:39:11 -05:00
|
|
|
<div class="gf-form-select-wrapper">
|
|
|
|
<select class="gf-form-input gf-size-auto" ng-model="sourceName" ng-options="f for f in datasources"></select>
|
|
|
|
</div>
|
2016-02-19 15:02:10 +01:00
|
|
|
</div>
|
|
|
|
<div class="gf-form-btn">
|
|
|
|
<button class="btn btn-success" ng-click="startImport()">Import</button>
|
|
|
|
</div>
|
2015-01-17 10:39:01 +01:00
|
|
|
</div>
|
2016-02-19 15:02:10 +01:00
|
|
|
</div>
|
2015-01-17 10:39:01 +01:00
|
|
|
|
2016-02-19 15:02:10 +01:00
|
|
|
<h5 class="page-heading" ng-if="importing">{{infoText}}</h5>
|
|
|
|
<div class="editor-row" ng-if="importing">
|
|
|
|
<div class="editor-row row">
|
|
|
|
<table class="grafana-options-table span5">
|
|
|
|
<tr ng-repeat="dash in imported">
|
|
|
|
<td>{{dash.name}}</td>
|
|
|
|
<td>
|
|
|
|
{{dash.info}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2015-01-17 10:39:01 +01:00
|
|
|
</div>
|
2016-02-19 15:02:10 +01:00
|
|
|
</div>
|
2015-02-23 10:50:50 +01:00
|
|
|
|
2016-02-19 15:02:10 +01:00
|
|
|
<div ng-include="'public/app/features/dashboard/partials/graphiteImport.html'"></div>
|
2015-02-23 10:50:50 +01:00
|
|
|
|
2015-01-17 10:39:01 +01:00
|
|
|
</div>
|
|
|
|
|