2015-02-23 10:13:16 +01:00
|
|
|
<topnav icon="fa fa-th-large" title="Dashboards" subnav="true">
|
2015-02-07 12:28:47 +01:00
|
|
|
<ul class="nav">
|
2015-02-23 10:13:16 +01:00
|
|
|
<li class="active"><a href="import">Import</a></li>
|
2015-02-07 12:28:47 +01:00
|
|
|
</ul>
|
2015-02-02 08:59:38 +01:00
|
|
|
</topnav>
|
2015-01-17 10:39:01 +01:00
|
|
|
|
2015-02-08 10:23:35 +01:00
|
|
|
<div class="page-container">
|
|
|
|
<div class="page">
|
2015-02-23 10:13:16 +01:00
|
|
|
<h2>
|
2015-02-23 10:50:50 +01:00
|
|
|
Import file
|
2015-02-23 10:13:16 +01:00
|
|
|
<span><tip>Load dashboard JSON layout from file</tip></span>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<div class="editor-row">
|
|
|
|
<div class="section">
|
|
|
|
<div class="editor-option">
|
|
|
|
<form>
|
|
|
|
<input type="file" id="dashupload" dash-upload/><br>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2>Migrate dashboards</h2>
|
2015-01-17 10:39:01 +01:00
|
|
|
|
2015-02-23 10:50:50 +01:00
|
|
|
<div class="tight-form last">
|
2015-02-08 10:23:35 +01:00
|
|
|
<ul class="tight-form-list">
|
|
|
|
<li class="tight-form-item" style="width: 150px">
|
|
|
|
<strong>Dashboard source</strong>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<select type="text" ng-model="sourceName" class="input-medium tight-form-input" ng-options="f for f in datasources">
|
|
|
|
</select>
|
|
|
|
</li>
|
|
|
|
<li class="tight-form-item">
|
|
|
|
<strong>Destination</strong>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<select type="text" ng-model="destName" class="input-medium tight-form-input" ng-options="f for f in datasources">
|
|
|
|
</select>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<button class="btn btn-success tight-form-btn" ng-click="startImport()">Import</button>
|
|
|
|
</li>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</ul>
|
2015-01-17 10:39:01 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="editor-row" ng-if="importing">
|
|
|
|
<section class="section">
|
|
|
|
<h5>{{infoText}}</h5>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
2015-02-23 10:50:50 +01:00
|
|
|
|
|
|
|
<div ng-include="'app/features/dashboard/partials/graphiteImport.html'"></div>
|
|
|
|
|
2015-01-17 10:39:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|