config.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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-size-auto" 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. <input type="text" class="gf-form-input max-width-18" ng-model='ctrl.current.jsonData.accessKey' placeholder="default"></input>
  17. <info-popover mode="right-absolute">
  18. AWS Access key id
  19. </info-popover>
  20. </div>
  21. <div class="gf-form" ng-show='ctrl.current.jsonData.authType == "keys"'>
  22. <label class="gf-form-label width-13">Secret key</label>
  23. <input type="text" class="gf-form-input max-width-18" ng-model='ctrl.current.jsonData.secretKey' placeholder="default"></input>
  24. <info-popover mode="right-absolute">
  25. AWS Secret key
  26. </info-popover>
  27. </div>
  28. <div class="gf-form" ng-show='ctrl.current.jsonData.authType == "arn"'>
  29. <label class="gf-form-label width-13">Assume Role ARN</label>
  30. <input type="text" class="gf-form-input max-width-18" ng-model='ctrl.current.jsonData.assumeRoleArn' placeholder="arn:aws:iam:*"></input>
  31. <info-popover mode="right-absolute">
  32. ARN of Assume Role
  33. </info-popover>
  34. </div>
  35. <div class="gf-form">
  36. <label class="gf-form-label width-13">Default Region</label>
  37. <div class="gf-form-select-wrapper max-width-18 gf-form-select-wrapper--has-help-icon">
  38. <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>
  39. <info-popover mode="right-absolute">
  40. Specify the region, such as for US West (Oregon) use ` us-west-2 ` as the region.
  41. </info-popover>
  42. </div>
  43. </div>
  44. <div class="gf-form">
  45. <label class="gf-form-label width-13">Custom Metrics namespace</label>
  46. <input type="text" class="gf-form-input max-width-18" ng-model='ctrl.current.jsonData.customMetricsNamespaces' placeholder="Namespace1,Namespace2"></input>
  47. <info-popover mode="right-absolute">
  48. Namespaces of Custom Metrics
  49. </info-popover>
  50. </div>
  51. </div>