config.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <h3 class="page-heading">CloudWatch details</h3>
  2. <div class="gf-form-group max-width-30">
  3. <div class="gf-form">
  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 </label>
  16. <label class="gf-form-label width-13" ng-show="ctrl.accessKeyExist">Configured</label>
  17. <a class="gf-form-button btn btn-danger btn-small" type="submit" ng-click="ctrl.resetAccessKey()" ng-show="ctrl.accessKeyExist">Reset</a>
  18. <input type="text"
  19. class="gf-form-input max-width-18"
  20. ng-hide="ctrl.accessKeyExist"
  21. ng-model='ctrl.current.secureJsonData.accessKey'></input>
  22. </div>
  23. <div class="gf-form" ng-show='ctrl.current.jsonData.authType == "keys"'>
  24. <label class="gf-form-label width-13">Secret key</label>
  25. <label class="gf-form-label width-13" ng-show="ctrl.secretKeyExist">Configured</label>
  26. <a class="btn btn-danger gf-form-button btn-small" type="submit" ng-click="ctrl.resetSecretKey()" ng-show="ctrl.secretKeyExist">Reset</a>
  27. <input type="text"
  28. class="gf-form-input max-width-18"
  29. ng-hide="ctrl.secretKeyExist"
  30. ng-model='ctrl.current.secureJsonData.secretKey'></input>
  31. </div>
  32. <div class="gf-form" ng-show='ctrl.current.jsonData.authType == "arn"'>
  33. <label class="gf-form-label width-13">Assume Role ARN</label>
  34. <input type="text" class="gf-form-input max-width-18" ng-model='ctrl.current.jsonData.assumeRoleArn' placeholder="arn:aws:iam:*"></input>
  35. <info-popover mode="right-absolute">
  36. ARN of Assume Role
  37. </info-popover>
  38. </div>
  39. <div class="gf-form">
  40. <label class="gf-form-label width-13">Default Region</label>
  41. <div class="gf-form-select-wrapper max-width-18 gf-form-select-wrapper--has-help-icon">
  42. <select class="gf-form-input" ng-model="ctrl.current.jsonData.defaultRegion" ng-options="region for region in ['ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'ap-south-1', 'cn-north-1', 'eu-central-1', 'eu-west-1', 'sa-east-1', 'us-east-1', 'us-east-2', 'us-gov-west-1', 'us-west-1', 'us-west-2']"></select>
  43. <info-popover mode="right-absolute">
  44. Specify the region, such as for US West (Oregon) use ` us-west-2 ` as the region.
  45. </info-popover>
  46. </div>
  47. </div>
  48. <div class="gf-form">
  49. <label class="gf-form-label width-13">Custom Metrics namespace</label>
  50. <input type="text" class="gf-form-input max-width-18" ng-model='ctrl.current.jsonData.customMetricsNamespaces' placeholder="Namespace1,Namespace2"></input>
  51. <info-popover mode="right-absolute">
  52. Namespaces of Custom Metrics
  53. </info-popover>
  54. </div>
  55. </div>