Files
grafana/public/app/plugins/datasource/cloudwatch/partials/config.html

55 lines
2.2 KiB
HTML
Raw Normal View History

2015-07-30 11:37:31 +09:00
<h5>CloudWatch details</h5>
<div class="tight-form">
<ul class="tight-form-list">
<li class="tight-form-item" style="width: 160px">
2015-08-10 23:15:25 +09:00
Default Region
2015-07-30 11:37:31 +09:00
</li>
<li>
<input type="text" class="tight-form-input input-xlarge" ng-model='current.jsonData.defaultRegion' placeholder="" required></input>
2015-07-30 11:37:31 +09:00
</li>
</ul>
2015-08-13 21:20:47 +09:00
<ul class="tight-form-list">
<li class="tight-form-item">
Access <tip>Direct = url is used directly from browser, Proxy = Grafana backend will proxy the request</label>
</li>
<li>
<select class="input-small tight-form-input" ng-model="current.jsonData.access" ng-options="f for f in ['direct', 'proxy']" ng-init="current.jsonData.access = current.jsonData.access || 'direct'"></select>
2015-08-13 21:20:47 +09:00
</li>
</ul>
2015-07-30 11:37:31 +09:00
<div class="clearfix"></div>
</div>
2015-08-24 21:58:57 +09:00
<div class="tight-form" ng-show="current.jsonData.access === 'direct'">
2015-07-30 11:37:31 +09:00
<ul class="tight-form-list">
<li class="tight-form-item" style="width: 160px">
2015-07-30 11:37:31 +09:00
Access Key Id
</li>
<li>
<input type="text" class="tight-form-input input-xlarge" ng-model='current.jsonData.accessKeyId' placeholder="" ng-required="current.jsonData.access === 'direct'"></input>
2015-07-30 11:37:31 +09:00
</li>
</ul>
<div class="clearfix"></div>
</div>
2015-09-11 00:26:29 +09:00
<div class="tight-form" ng-show="current.jsonData.access === 'direct'">
<ul class="tight-form-list">
<li class="tight-form-item" style="width: 160px">
Secret Access Key
2015-07-30 11:37:31 +09:00
</li>
<li>
<input type="password" class="tight-form-input input-xlarge" ng-model='current.jsonData.secretAccessKey' placeholder="" ng-required="current.jsonData.access === 'direct'"></input>
2015-07-30 11:37:31 +09:00
</li>
</ul>
<div class="clearfix"></div>
</div>
2015-08-24 21:58:57 +09:00
<div class="tight-form last">
<ul class="tight-form-list">
<li class="tight-form-item" style="width: 160px">
Custom Metric Attributes
2015-08-24 21:58:57 +09:00
</li>
<li>
2015-08-25 13:35:27 +09:00
<input type="text" class="tight-form-input input-xlarge" ng-model='current.jsonData.customMetricsAttributes[0]' ng-init="current.jsonData.customMetricsAttributes = current.jsonData.customMetricsAttributes || []" placeholder="JSON url" bs-tooltip="'Set JSON url of the result, \'aws cloudwatch list-metrics --output json\''"></input>
2015-08-24 21:58:57 +09:00
</li>
</ul>
<div class="clearfix"></div>
</div>