config.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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>
  47. <h3 class="page-heading">Misc</h3>
  48. <div class="gf-form-group">
  49. <div class="gf-form-inline">
  50. <div class="gf-form max-width-30">
  51. <span class="gf-form-label width-13">Custom query parameters</span>
  52. <input
  53. type="text"
  54. class="gf-form-input gf-form-input--has-help-icon"
  55. ng-model="ctrl.current.jsonData.customQueryParameters"
  56. spellcheck="false"
  57. placeholder="Example: max_source_resolution=5m&timeout=10"
  58. ></input>
  59. <info-popover mode="right-absolute">
  60. Add Custom parameters to Prometheus or Thanos queries.
  61. </info-popover>
  62. </div>
  63. </div>
  64. </div>