tab_alerting.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <div class="editor-row">
  2. <div class="gf-form-group section" >
  3. <h5 class="section-heading">Query</h5>
  4. <div class="gf-form" style="margin-bottom: 2rem">
  5. <span class="gf-form-label width-9">Query to watch</span>
  6. <div class="gf-form-select-wrapper max-width-12">
  7. <select class="gf-form-input"
  8. ng-model="ctrl.panel.alerting.queryRef"
  9. ng-options="target.refId as target.refId for target in alertTab.metricTargets"></select>
  10. </div>
  11. </div>
  12. <h5 class="section-heading">Thresholds</h5>
  13. <div class="gf-form">
  14. <span class="gf-form-label width-9">
  15. <i class="icon-gf icon-gf-warn alert-icon-warn"></i>
  16. Warn level
  17. </span>
  18. <div class="gf-form-select-wrapper max-width-10">
  19. <select class="gf-form-input" ng-model="ctrl.panel.alerting.warnOperator" ng-options="oper as oper for oper in alertTab.operators"></select>
  20. </div>
  21. <input class="gf-form-input max-width-7" type="number" ng-model="ctrl.panel.alerting.warnLevel" ng-change="alertTab.thresholdsUpdated()"></input>
  22. </div>
  23. <div class="gf-form">
  24. <span class="gf-form-label width-9">
  25. <i class="icon-gf icon-gf-critical alert-icon-critical"></i>
  26. Critical level
  27. </span>
  28. <div class="gf-form-select-wrapper max-width-10">
  29. <select class="gf-form-input" ng-model="ctrl.panel.alerting.critOperator" ng-options="oper as oper for oper in alertTab.operators"></select>
  30. </div>
  31. <input class="gf-form-input max-width-7" type="number" ng-model="ctrl.panel.alerting.critLevel" ng-change="alertTab.thresholdsUpdated()"></input>
  32. </div>
  33. </div>
  34. <div class="gf-form-group section">
  35. <h5 class="section-heading">Aggregation settings</h5>
  36. <div class="gf-form">
  37. <span class="gf-form-label width-10">Aggregation method</span>
  38. <div class="gf-form-select-wrapper max-width-10">
  39. <select class="gf-form-input"
  40. ng-model="ctrl.panel.alerting.aggregator"
  41. ng-options="oper as oper for oper in alertTab.aggregators"></select>
  42. </div>
  43. </div>
  44. <div class="gf-form">
  45. <span class="gf-form-label width-10">Query range</span>
  46. <input class="gf-form-input max-width-10" type="text"
  47. ng-model="ctrl.panel.alerting.queryRange" placeholder="10m"></input>
  48. </div>
  49. <div class="gf-form">
  50. <span class="gf-form-label width-10">Interval</span>
  51. <input class="gf-form-input max-width-10" type="text"
  52. ng-model="ctrl.panel.alerting.interval" placeholder="10s"></input>
  53. </div>
  54. </div>
  55. <div class="gf-form-group section">
  56. <h5 class="section-heading">Alert info</h5>
  57. <div class="gf-form">
  58. <span class="gf-form-label width-10">Alert name</span>
  59. <input type="text" class="gf-form-input width-22" ng-model="ctrl.panel.alerting.title">
  60. </div>
  61. <div class="gf-form-inline">
  62. <div class="gf-form">
  63. <span class="gf-form-label width-10" style="margin-top: -73px;">Alert description</span>
  64. </div>
  65. <div class="gf-form">
  66. <textarea rows="5" ng-model="ctrl.panel.alerting.description" class="gf-form-input width-22"></textarea>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="editor-row">
  72. <div class="gf-form-button-row">
  73. <button class="btn btn-warning" ng-click="alertTab.markAsDeleted()">Delete Alert</button>
  74. </div>
  75. </div>