config.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <datasource-http-settings current="ctrl.current" suggest-url="http://localhost:8086">
  2. </datasource-http-settings>
  3. <h3 class="page-heading">InfluxDB Details</h3>
  4. <div class="gf-form-group">
  5. <div class="gf-form-inline">
  6. <div class="gf-form max-width-30">
  7. <span class="gf-form-label width-10">Database</span>
  8. <input type="text" class="gf-form-input" ng-model='ctrl.current.database' placeholder="" required></input>
  9. </div>
  10. </div>
  11. <div class="gf-form-inline">
  12. <div class="gf-form max-width-15">
  13. <span class="gf-form-label width-10">User</span>
  14. <input type="text" class="gf-form-input" ng-model='ctrl.current.user' placeholder=""></input>
  15. </div>
  16. <div class="gf-form">
  17. <secret-form-field
  18. isConfigured="ctrl.current.password || ctrl.current.secureJsonFields.password"
  19. value="ctrl.current.secureJsonData.password || ''"
  20. on-reset="ctrl.onPasswordReset"
  21. on-change="ctrl.onPasswordChange"
  22. inputWidth="9"
  23. />
  24. </div>
  25. </div>
  26. <div class="gf-form">
  27. <label class="gf-form-label width-8">HTTP Method</label>
  28. <div class="gf-form-select-wrapper width-8 gf-form-select-wrapper--has-help-icon">
  29. <select class="gf-form-input" ng-model="ctrl.current.jsonData.httpMode" ng-options="f.value as f.name for f in ctrl.httpMode"></select>
  30. <info-popover mode="right-absolute">
  31. You can use either <code>GET</code> or <code>POST</code> HTTP method to query your InfluxDB database. The <code>POST</code>
  32. method allows you to perform heavy requests (with a lots of <code>WHERE</code> clause) while the <code>GET</code> method
  33. will restrict you and return an error if the query is too large.
  34. </info-popover>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="gf-form-group">
  39. <div class="grafana-info-box">
  40. <h5>Database Access</h5>
  41. <p>
  42. Setting the database for this datasource does not deny access to other databases. The InfluxDB query syntax allows
  43. switching the database in the query. For example:
  44. <code>SHOW MEASUREMENTS ON _internal</code> or <code>SELECT * FROM "_internal".."database" LIMIT 10</code>
  45. <br/><br/>
  46. To support data isolation and security, make sure appropriate permissions are configured in InfluxDB.
  47. </p>
  48. </div>
  49. </div>
  50. <div class="gf-form-group">
  51. <div class="gf-form-inline">
  52. <div class="gf-form">
  53. <span class="gf-form-label">Min time interval</span>
  54. <input type="text" class="gf-form-input width-6 gf-form-input--has-help-icon" ng-model="ctrl.current.jsonData.timeInterval" spellcheck='false' placeholder="10s"></input>
  55. <info-popover mode="right-absolute">
  56. A lower limit for the auto group by time interval. Recommended to be set to write frequency,
  57. for example <code>1m</code> if your data is written every minute.
  58. </info-popover>
  59. </div>
  60. </div>
  61. </div>