config.html 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <h3 class="page-heading">CloudWatch details</h3>
  2. <div class="gf-form-group max-width-30">
  3. <div class="gf-form gf-form-select-wrapper">
  4. <label class="gf-form-label width-13">Auth Provider</label>
  5. <select class="gf-form-input gf-max-width-13" ng-model="ctrl.current.jsonData.authType" ng-options="f.value as f.name for f in ctrl.authTypes"></select>
  6. </div>
  7. <div class="gf-form" ng-show='ctrl.current.jsonData.authType == "credentials"'>
  8. <label class="gf-form-label width-13">Credentials profile name</label>
  9. <input type="text" class="gf-form-input max-width-18" ng-model='ctrl.current.database' placeholder="default"></input>
  10. <info-popover mode="right-absolute">
  11. Credentials profile name, as specified in ~/.aws/credentials, leave blank for default
  12. </info-popover>
  13. </div>
  14. <div class="gf-form" ng-show='ctrl.current.jsonData.authType == "keys"'>
  15. <label class="gf-form-label width-13">Access key ID </label>
  16. <label class="gf-form-label width-13" ng-show="ctrl.accessKeyExist">Configured</label>
  17. <a class="btn btn-secondary gf-form-btn" type="submit" ng-click="ctrl.resetAccessKey()" ng-show="ctrl.accessKeyExist">Reset</a>
  18. <input type="text" class="gf-form-input max-width-18" ng-hide="ctrl.accessKeyExist" ng-model='ctrl.current.secureJsonData.accessKey'></input>
  19. </div>
  20. <div class="gf-form" ng-show='ctrl.current.jsonData.authType == "keys"'>
  21. <label class="gf-form-label width-13">Secret access key</label>
  22. <label class="gf-form-label width-13" ng-show="ctrl.secretKeyExist">Configured</label>
  23. <a class="btn btn-secondary gf-form-btn" type="submit" ng-click="ctrl.resetSecretKey()" ng-show="ctrl.secretKeyExist">Reset</a>
  24. <input type="text" class="gf-form-input max-width-18" ng-hide="ctrl.secretKeyExist" ng-model='ctrl.current.secureJsonData.secretKey'></input>
  25. </div>
  26. <div class="gf-form" ng-show='ctrl.current.jsonData.authType == "arn"'>
  27. <label class="gf-form-label width-13">Assume Role ARN</label>
  28. <input type="text" class="gf-form-input max-width-18" ng-model='ctrl.current.jsonData.assumeRoleArn' placeholder="arn:aws:iam:*"></input>
  29. <info-popover mode="right-absolute">
  30. ARN of Assume Role
  31. </info-popover>
  32. </div>
  33. <div class="gf-form">
  34. <label class="gf-form-label width-13">Default Region</label>
  35. <div class="gf-form-select-wrapper max-width-18 gf-form-select-wrapper--has-help-icon">
  36. <select class="gf-form-input" ng-model="ctrl.current.jsonData.defaultRegion" ng-options="region for region in ctrl.regions"></select>
  37. <info-popover mode="right-absolute">
  38. Specify the region, such as for US West (Oregon) use ` us-west-2 ` as the region.
  39. </info-popover>
  40. </div>
  41. </div>
  42. <div class="gf-form">
  43. <label class="gf-form-label width-13">Custom Metrics</label>
  44. <input type="text" class="gf-form-input max-width-18" ng-model='ctrl.current.jsonData.customMetricsNamespaces' placeholder="Namespace1,Namespace2"></input>
  45. <info-popover mode="right-absolute">
  46. Namespaces of Custom Metrics
  47. </info-popover>
  48. </div>
  49. </div>