| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <datasource-http-settings current="ctrl.current" suggest-url="http://localhost:9090">
- </datasource-http-settings>
- <div class="gf-form-group">
- <div class="gf-form-inline">
- <div class="gf-form">
- <span class="gf-form-label width-8">Scrape interval</span>
- <input
- type="text"
- class="gf-form-input width-8 gf-form-input--has-help-icon"
- ng-model="ctrl.current.jsonData.timeInterval"
- spellcheck='false'
- placeholder="15s"
- ng-pattern="/^\d+[Mwdhmsy]$/"
- ></input>
- <info-popover mode="right-absolute">
- Set this to your global scrape interval defined in your Prometheus config file. This will be used as a lower limit for the
- Prometheus step query parameter.
- </info-popover>
- </div>
- </div>
- <div class="gf-form-inline">
- <div class="gf-form">
- <span class="gf-form-label width-8">Query timeout</span>
- <input
- type="text"
- class="gf-form-input width-8 gf-form-input--has-help-icon"
- ng-model="ctrl.current.jsonData.queryTimeout"
- spellcheck="false"
- placeholder="60s"
- ng-pattern="/^\d+[Mwdhmsy]$/"
- ></input>
- <info-popover mode="right-absolute">
- Set the Prometheus query timeout.
- </info-popover>
- </div>
- </div>
- <div class="gf-form">
- <label class="gf-form-label width-8">HTTP Method</label>
- <div class="gf-form-select-wrapper width-8 gf-form-select-wrapper--has-help-icon">
- <select class="gf-form-input" ng-model="ctrl.current.jsonData.httpMethod" ng-options="method for method in ['GET', 'POST']"></select>
- <info-popover mode="right-absolute">
- Specify the HTTP Method to query Prometheus. (POST is only available in Prometheus >= v2.1.0)
- </info-popover>
- </div>
- </div>
- </div>
- <h3 class="page-heading">Misc</h3>
- <div class="gf-form-group">
- <div class="gf-form-inline">
- <div class="gf-form max-width-30">
- <span class="gf-form-label width-13">Custom query parameters</span>
- <input
- type="text"
- class="gf-form-input gf-form-input--has-help-icon"
- ng-model="ctrl.current.jsonData.customQueryParameters"
- spellcheck="false"
- placeholder="Example: max_source_resolution=5m&timeout=10"
- ></input>
- <info-popover mode="right-absolute">
- Add Custom parameters to Prometheus or Thanos queries.
- </info-popover>
- </div>
- </div>
- </div>
|