config.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <datasource-http-settings current="ctrl.current" suggest-url="http://localhost:9090">
  2. </datasource-http-settings>
  3. <div class="gf-form-group">
  4. <div class="gf-form-inline">
  5. <div class="gf-form">
  6. <span class="gf-form-label width-8">Scrape interval</span>
  7. <input
  8. type="text"
  9. class="gf-form-input width-8 gf-form-input--has-help-icon"
  10. ng-model="ctrl.current.jsonData.timeInterval"
  11. spellcheck='false'
  12. placeholder="15s"
  13. ng-pattern="/^\d+[Mwdhmsy]$/"
  14. ></input>
  15. <info-popover mode="right-absolute">
  16. Set this to your global scrape interval defined in your Prometheus config file. This will be used as a lower limit for the
  17. Prometheus step query parameter.
  18. </info-popover>
  19. </div>
  20. </div>
  21. <div class="gf-form-inline">
  22. <div class="gf-form">
  23. <span class="gf-form-label width-8">Query timeout</span>
  24. <input
  25. type="text"
  26. class="gf-form-input width-8 gf-form-input--has-help-icon"
  27. ng-model="ctrl.current.jsonData.queryTimeout"
  28. spellcheck="false"
  29. placeholder="60s"
  30. ng-pattern="/^\d+[Mwdhmsy]$/"
  31. ></input>
  32. <info-popover mode="right-absolute">
  33. Set the Prometheus query timeout.
  34. </info-popover>
  35. </div>
  36. </div>
  37. <div class="gf-form">
  38. <label class="gf-form-label width-8">HTTP Method</label>
  39. <div class="gf-form-select-wrapper width-8 gf-form-select-wrapper--has-help-icon">
  40. <select class="gf-form-input" ng-model="ctrl.current.jsonData.httpMethod" ng-options="method for method in ['GET', 'POST']"></select>
  41. <info-popover mode="right-absolute">
  42. Specify the HTTP Method to query Prometheus. (POST is only available in Prometheus >= v2.1.0)
  43. </info-popover>
  44. </div>
  45. </div>
  46. </div>