forked from grafana/grafana
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: more work on metrics tab reworkings
- Loading branch information
Showing
6 changed files
with
80 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,62 @@ | ||
|
||
<metrics-ds-selector panel-ctrl="ctrl"></metrics-ds-selector> | ||
<div class="gf-form-group"> | ||
<div class="gf-form-inline"> | ||
<div class="gf-form"> | ||
<label class="gf-form-label"> | ||
<i class="icon-gf icon-gf-datasources"></i> | ||
</label> | ||
|
||
<label class="gf-form-label"> | ||
Data Source | ||
</label> | ||
|
||
<metric-segment segment="ctrl.dsSegment" | ||
get-options="ctrl.getOptions(true)" | ||
on-change="ctrl.datasourceChanged()"></metric-segment> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="query-editor-rows gf-form-group"> | ||
<div ng-repeat="target in ctrl.panel.targets" ng-class="{'gf-form-disabled': target.hide}"> | ||
<rebuild-on-change property="ctrl.panel.datasource || target.datasource" show-null="true"> | ||
<plugin-component type="query-ctrl"> | ||
</plugin-component> | ||
</rebuild-on-change> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<query-troubleshooter panel-ctrl="ctrl"></query-troubleshooter> | ||
<div class="gf-form-query"> | ||
<div class="gf-form gf-form-query-letter-cell"> | ||
<label class="gf-form-label"> | ||
<span class="gf-form-query-letter-cell-carret"> | ||
<i class="fa fa-caret-down"></i> | ||
</span> | ||
<span class="gf-form-query-letter-cell-letter">{{ctrl.nextRefId}}</span> | ||
</label> | ||
<button class="btn btn-inverse gf-form-btn" ng-click="ctrl.addDataQuery()" ng-hide="ctrl.current.meta.mixed"> | ||
Add Query | ||
</button> | ||
|
||
<div class="gf-form-group"> | ||
<rebuild-on-change property="ctrl.panel.datasource" show-null="true"> | ||
<plugin-component type="query-options-ctrl"> | ||
</plugin-component> | ||
</rebuild-on-change> | ||
<div class="dropdown" ng-if="ctrl.current.meta.mixed"> | ||
<metric-segment segment="ctrl.mixedDsSegment" get-options="ctrl.getOptions(false)" on-change="ctrl.mixedDatasourceChanged()"></metric-segment> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<query-troubleshooter panel-ctrl="ctrl.panelCtrl"></query-troubleshooter> | ||
|
||
<collapse-box title="Advanced Options & Data source help"> | ||
<collapse-box-body> | ||
|
||
<div class="gf-form-group"> | ||
<rebuild-on-change property="ctrl.panel.datasource" show-null="true"> | ||
<plugin-component type="query-options-ctrl"> | ||
</plugin-component> | ||
</rebuild-on-change> | ||
</div> | ||
|
||
</collapse-box-body> | ||
</collapse-box> | ||
|
||
<div class="clearfix"></div> |