config.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  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 type="text" class="gf-form-input width-8" ng-model="ctrl.current.jsonData.timeInterval" spellcheck='false' placeholder="15s"></input>
  8. <info-popover mode="right-absolute">
  9. Set this to your global scrape interval defined in your Prometheus config file. This will be used as a lower limit for the
  10. Prometheus step query parameter.
  11. </info-popover>
  12. </div>
  13. </div>
  14. <div class="gf-form-inline">
  15. <div class="gf-form">
  16. <span class="gf-form-label width-8">Query timeout</span>
  17. <input type="text" class="gf-form-input width-8" ng-model="ctrl.current.jsonData.queryTimeout" spellcheck='false' placeholder="60s"></input>
  18. <info-popover mode="right-absolute">
  19. Set the Prometheus query timeout.
  20. </info-popover>
  21. </div>
  22. </div>
  23. <div class="gf-form">
  24. <label class="gf-form-label width-8">HTTP Method</label>
  25. <div class="gf-form-select-wrapper width-8 gf-form-select-wrapper--has-help-icon">
  26. <select class="gf-form-input" ng-model="ctrl.current.jsonData.httpMethod" ng-options="method for method in ['GET', 'POST']"></select>
  27. <info-popover mode="right-absolute">
  28. Specify the HTTP Method to query Prometheus. (POST is only available in Prometheus >= v2.1.0)
  29. </info-popover>
  30. </div>
  31. </div>
  32. </div>