tab_alerting.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <div class="editor-row">
  2. <div class="gf-form-group section">
  3. </div>
  4. <div class="gf-form-group section">
  5. <h5 class="section-heading">Query</h5>
  6. <div class="gf-form">
  7. <span class="gf-form-label">Query to watch</span>
  8. <div class="gf-form-select-wrapper">
  9. <select class="gf-form-input gf-size-auto"
  10. ng-model="ctrl.panel.alerting.queryRef"
  11. ng-options="target.refId as target.refId for target in ctrl.panel.targets"></select>
  12. </div>
  13. </div>
  14. <h5 class="section-heading">Thresholds</h5>
  15. <p ng-show="ctrl.panel.grid.threshold1 || ctrl.panel.grid.threshold2">We noticed you have existing threshholds.<a href="#" ng-click="ctrl.convertThresholdsToAlert()">Convert them</a></p>
  16. <div class="gf-form">
  17. <span class="gf-form-label width-7">Warn level</span>
  18. <input class="gf-form-input max-width-7" type="text" ng-model="ctrl.panel.alerting.warnLevel"></input>
  19. </div>
  20. <div class="gf-form">
  21. <span class="gf-form-label width-7">Critical level</span>
  22. <input class="gf-form-input max-width-7" type="text" ng-model="ctrl.panel.alerting.critLevel"></input>
  23. </div>
  24. </div>
  25. <div class="gf-form-group section">
  26. <h5 class="section-heading">Aggregation settings</h5>
  27. <div class="gf-form">
  28. <span class="gf-form-label width-10">Aggregation method</span>
  29. <div class="gf-form-select-wrapper">
  30. <select class="gf-form-input max-width-10"
  31. ng-model="ctrl.panel.alerting.aggregator"
  32. ng-options="oper as oper for oper in ['avg', 'sum']"></select>
  33. </div>
  34. </div>
  35. <div class="gf-form">
  36. <span class="gf-form-label width-10">Query range</span>
  37. <input class="gf-form-input max-width-10" type="text"
  38. ng-model="ctrl.panel.alerting.queryRange" placeholder="10m"></input>
  39. </div>
  40. <div class="gf-form">
  41. <span class="gf-form-label width-10">Interval</span>
  42. <input class="gf-form-input max-width-10" type="text"
  43. ng-model="ctrl.panel.alerting.interval" placeholder="10s"></input>
  44. </div>
  45. </div>
  46. <div class="gf-form-group section">
  47. <h5 class="section-heading">Alert info</h5>
  48. <div class="gf-form">
  49. <span class="gf-form-label width-10">Alert name</span>
  50. <input type="text" class="gf-form-input max-width-26" ng-model="ctrl.panel.alerting.title">
  51. </div>
  52. <div class="gf-form-inline">
  53. <div class="gf-form">
  54. <span class="gf-form-label width-10">Alert description</span>
  55. </div>
  56. <div class="gf-form">
  57. <textarea rows="4" ng-model="ctrl.panel.alerting.description" class="gf-form-input max-width-26"></textarea>
  58. </div>
  59. </div>
  60. </div>
  61. </div>