config.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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>
  27. <div class="gf-form-group">
  28. <div class="grafana-info-box">
  29. <h5>Database Access</h5>
  30. <p>
  31. Setting the database for this datasource does not deny access to other databases. The InfluxDB query syntax allows
  32. switching the database in the query. For example:
  33. <code>SHOW MEASUREMENTS ON _internal</code> or <code>SELECT * FROM "_internal".."database" LIMIT 10</code>
  34. <br/><br/>
  35. To support data isolation and security, make sure appropriate permissions are configured in InfluxDB.
  36. </p>
  37. </div>
  38. </div>
  39. <div class="gf-form-group">
  40. <div class="gf-form-inline">
  41. <div class="gf-form">
  42. <span class="gf-form-label">Min time interval</span>
  43. <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>
  44. <info-popover mode="right-absolute">
  45. A lower limit for the auto group by time interval. Recommended to be set to write frequency,
  46. for example <code>1m</code> if your data is written every minute.
  47. </info-popover>
  48. </div>
  49. </div>
  50. </div>