query.options.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <section class="grafana-metric-options">
  2. <div class="gf-form-group">
  3. <div class="gf-form-inline">
  4. <div class="gf-form">
  5. <span class="gf-form-label"><i class="fa fa-wrench"></i></span>
  6. <span class="gf-form-label width-11">Group by time interval</span>
  7. <input type="text" class="gf-form-input" ng-model="ctrl.panelCtrl.panel.interval" ng-blur="ctrl.panelCtrl.refresh();"
  8. spellcheck='false' placeholder="example: >10s">
  9. <span class="gf-form-label"><i class="fa fa-question-circle" bs-tooltip="'Set a low limit by having a greater sign: example: >60s'" data-placement="right"></i></span>
  10. </div>
  11. </div>
  12. <div class="gf-form-inline">
  13. <div class="gf-form">
  14. <!--span class="gf-form-label">
  15. <i class="fa fa-info-circle"></i>
  16. </span-->
  17. <span class="gf-form-label width-10">
  18. <a ng-click="ctrl.panelCtrl.toggleEditorHelp(1);" bs-tooltip="'click to show helpful info'" data-placement="bottom">
  19. <i class="fa fa-info-circle"></i>
  20. &nbsp;alias patterns
  21. </a>
  22. </span>
  23. <span class="gf-form-label width-10">
  24. <a ng-click="ctrl.panelCtrl.toggleEditorHelp(2)" bs-tooltip="'click to show helpful info'" data-placement="bottom">
  25. <i class="fa fa-info-circle"></i>
  26. &nbsp;stacking &amp; and fill
  27. </a>
  28. </span>
  29. <span class="gf-form-label width-10">
  30. <a ng-click="ctrl.panelCtrl.toggleEditorHelp(3)" bs-tooltip="'click to show helpful info'" data-placement="bottom">
  31. <i class="fa fa-info-circle"></i>
  32. &nbsp;group by time
  33. </a>
  34. </span>
  35. </div>
  36. </div>
  37. </div>
  38. </section>
  39. <div class="editor-row">
  40. <div class="pull-left">
  41. <div class="grafana-info-box span6" ng-if="ctrl.panelCtrl.editorHelpIndex === 1">
  42. <h5>Alias patterns</h5>
  43. <ul>
  44. <li>$m = replaced with measurement name</li>
  45. <li>$measurement = replaced with measurement name</li>
  46. <li>$1 - $9 = replaced with part of measurement name (if you seperate your measurement name with dots)</li>
  47. <li>$col = replaced with column name</li>
  48. <li>$tag_hostname = replaced with the value of the hostname tag</li>
  49. <li>You can also use [[tag_hostname]] pattern replacement syntax</li>
  50. </ul>
  51. </div>
  52. <div class="grafana-info-box span6" ng-if="ctrl.panelCtrl.editorHelpIndex === 2">
  53. <h5>Stacking and fill</h5>
  54. <ul>
  55. <li>When stacking is enabled it important that points align</li>
  56. <li>If there are missing points for one series it can cause gaps or missing bars</li>
  57. <li>You must use fill(0), and select a group by time low limit</li>
  58. <li>Use the group by time option below your queries and specify for example &gt;10s if your metrics are written every 10 seconds</li>
  59. <li>This will insert zeros for series that are missing measurements and will make stacking work properly</li>
  60. </ul>
  61. </div>
  62. <div class="grafana-info-box span6" ng-if="ctrl.panelCtrl.editorHelpIndex === 3">
  63. <h5>Group by time</h5>
  64. <ul>
  65. <li>Group by time is important, otherwise the query could return many thousands of datapoints that will slow down Grafana</li>
  66. <li>Leave the group by time field empty for each query and it will be calculated based on time range and pixel width of the graph</li>
  67. <li>If you use fill(0) or fill(null) set a low limit for the auto group by time interval</li>
  68. <li>The low limit can only be set in the group by time option below your queries</li>
  69. <li>You set a low limit by adding a greater sign before the interval</li>
  70. <li>Example: &gt;60s if you write metrics to InfluxDB every 60 seconds</li>
  71. </ul>
  72. </div>
  73. </div>
  74. </div>