mirror of https://github.com/grafana/grafana
commit
6632f883c0
@ -1,3 +1,3 @@ |
||||
{ |
||||
"url": "https://floobits.com/raintank/grafana" |
||||
"url": "https://floobits.com/raintank/grafana" |
||||
} |
@ -1,6 +1,16 @@ |
||||
prometheus: |
||||
build: blocks/prometheus |
||||
net: bridge |
||||
ports: |
||||
- "9090:9090" |
||||
volumes: |
||||
- /var/docker/prometheus:/prometheus-data |
||||
|
||||
fake-data-gen: |
||||
image: grafana/fake-data-gen |
||||
net: bridge |
||||
ports: |
||||
- "9091:9091" |
||||
environment: |
||||
FD_DATASOURCE: prom |
||||
|
||||
|
@ -1,4 +1,4 @@ |
||||
{ |
||||
"stable": "3.0.1", |
||||
"testing": "3.0.1" |
||||
"stable": "3.0.2", |
||||
"testing": "3.0.2" |
||||
} |
||||
|
@ -0,0 +1,58 @@ |
||||
<div class="editor-row"> |
||||
<div class="gf-form-group"> |
||||
<div class="gf-form"> |
||||
<span class="gf-form-label"> |
||||
Type |
||||
</span> |
||||
<div class="gf-form-select-wrapper"> |
||||
<select class="gf-form-input" ng-model="ctrl.panel.mappingType" |
||||
ng-options="f.value as f.name for f in ctrl.panel.mappingTypes" ng-change="ctrl.render()"></select> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="editor-row" ng-if="ctrl.panel.mappingType==1"> |
||||
<h5 class="page-heading">Set value mappings</h5> |
||||
<div class="gf-form-group"> |
||||
<div class="gf-form" ng-repeat="map in ctrl.panel.valueMaps"> |
||||
<span class="gf-form-label"> |
||||
<i class="fa fa-remove pointer" ng-click="ctrl.removeValueMap(map)"></i> |
||||
</span> |
||||
<input type="text" ng-model="map.value" placeholder="value" class="gf-form-input max-width-6" ng-blur="ctrl.render()"> |
||||
<span class="gf-form-label"> |
||||
<i class="fa fa-arrow-right"></i> |
||||
</span> |
||||
<input type="text" placeholder="text" ng-model="map.text" class="gf-form-input max-width-8" ng-blur="ctrl.render()"> |
||||
</div> |
||||
|
||||
<div class="gf-form-button-row"> |
||||
<button class="btn btn-inverse" ng-click="ctrl.addValueMap();"> |
||||
<i class="fa fa-plus"></i> |
||||
Add a value mapping |
||||
</button> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="editor-row" ng-if="ctrl.panel.mappingType==2"> |
||||
<h5 class="page-heading">Set range mappings</h5> |
||||
<div class="gf-form-group"> |
||||
<div class="gf-form" ng-repeat="rangeMap in ctrl.panel.rangeMaps"> |
||||
<span class="gf-form-label"> |
||||
<i class="fa fa-remove pointer" ng-click="ctrl.removeRangeMap(rangeMap)"></i> |
||||
</span> |
||||
<span class="gf-form-label">From</span> |
||||
<input type="text" ng-model="rangeMap.from" class="gf-form-input max-width-6" ng-blur="ctrl.render()"> |
||||
<span class="gf-form-label">To</span> |
||||
<input type="text" ng-model="rangeMap.to" class="gf-form-input max-width-6" ng-blur="ctrl.render()"> |
||||
<span class="gf-form-label">Text</span> |
||||
<input type="text" ng-model="rangeMap.text" class="gf-form-input max-width-8" ng-blur="ctrl.render()"> |
||||
</div> |
||||
|
||||
<div class="gf-form-button-row"> |
||||
<button class="btn btn-inverse" ng-click="ctrl.addRangeMap()"> |
||||
<i class="fa fa-plus"></i> |
||||
Add a range mapping |
||||
</button> |
||||
</div> |
||||
</div> |
||||
</div> |
Loading…
Reference in new issue