60 lines
3.1 KiB
HTML
60 lines
3.1 KiB
HTML
<div class="gf-form-group">
|
|
<h3 class="page-heading">Http settings</h3>
|
|
<div class="gf-form-inline">
|
|
<div class="gf-form max-width-30">
|
|
<span class="gf-form-label width-7">Url</span>
|
|
<input class="gf-form-input" type="text" ng-model='ctrl.current.url' placeholder="for example: http://localhost:8081" ng-pattern="/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/" required></input>
|
|
<info-popover mode="right-absolute">
|
|
<p>Specify a complete HTTP url (for example http://your_server:8080)</p>
|
|
<span ng-show="ctrl.current.access === 'direct'">
|
|
Your access method is <em>Direct</em>, this means the url
|
|
needs to be accessable from the browser.
|
|
</span>
|
|
<span ng-show="ctrl.current.access === 'proxy'">
|
|
Your access method is currently <em>Proxy</em>, this means the url
|
|
needs to be accessable from the grafana backend.
|
|
</span>
|
|
</info-popover>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="gf-form-inline">
|
|
<div class="gf-form max-width-30">
|
|
<span class="gf-form-label width-7">Access</span>
|
|
<div class="gf-form-select-wrapper gf-form-select-wrapper--has-help-icon max-width-24">
|
|
<select class="gf-form-input" ng-model="ctrl.current.access" ng-options="f for f in ['direct', 'proxy']"></select>
|
|
<info-popover mode="right-absolute">
|
|
Direct = url is used directly from browser<br>
|
|
Proxy = Grafana backend will proxy the request
|
|
</info-popover>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="gf-form-group">
|
|
<h3 class="page-heading">Authentication</h3>
|
|
<div class="gf-form-inline">
|
|
<div class="gf-form max-width-30" ng-show='ctrl.current.jsonData.authMode == "Token"'>
|
|
<span class="gf-form-label width-7">Token</span>
|
|
<input class="gf-form-input" type="text" ng-model='ctrl.current.jsonData.token' placeholder=""></input>
|
|
<info-popover mode="right-absolute">
|
|
<span>A token is required to autenticate if neither Keystone auth nor Horizon auth is set.</span>
|
|
</info-popover>
|
|
</div>
|
|
</div>
|
|
<div class="gf-form-inline">
|
|
<div class="gf-form max-width-30">
|
|
<span class="gf-form-label width-7">Auth</span>
|
|
<div class="gf-form-select-wrapper gf-form-select-wrapper--has-help-icon max-width-24">
|
|
<select class="gf-form-input" ng-model="ctrl.current.jsonData.authMode" ng-options="f for f in ['Keystone', 'Horizon', 'Token']"></select>
|
|
<info-popover mode="right-absolute">
|
|
Keystone = Authenticate against Keystone (requires Keystone support in Grafana)<br>
|
|
Horizon = Use Horizon session for authentication (requires direct access and monasca-ui Horizon plugin)<br>
|
|
Token = Use static Keystone token for authentication
|
|
</info-popover>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|