config.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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-7">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-7">User</span>
  14. <input type="text" class="gf-form-input" ng-model='ctrl.current.user' placeholder=""></input>
  15. </div>
  16. <div class="gf-form max-width-15">
  17. <span class="gf-form-label width-7">Password</span>
  18. <input type="password" class="gf-form-input" ng-model='ctrl.current.password' placeholder=""></input>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="gf-form-group">
  23. <div class="grafana-info-box">
  24. <h5>Database Access</h5>
  25. <p>
  26. Setting the database for this datasource does not deny access to other databases. The InfluxDB query syntax allows
  27. switching the database in the query. For example:
  28. <code>SHOW MEASUREMENTS ON _internal</code> or <code>SELECT * FROM "_internal".."database" LIMIT 10</code>
  29. <br/><br/>
  30. To support data isolation and security, make sure appropriate permissions are configured in InfluxDB.
  31. </p>
  32. </div>
  33. </div>
  34. <div class="gf-form-group">
  35. <div class="gf-form-inline">
  36. <div class="gf-form">
  37. <span class="gf-form-label">Min time interval</span>
  38. <input type="text" class="gf-form-input width-6" ng-model="ctrl.current.jsonData.timeInterval" spellcheck='false' placeholder="10s"></input>
  39. <info-popover mode="right-absolute">
  40. A lower limit for the auto group by time interval. Recommended to be set to write frequency,
  41. for example <code>1m</code> if your data is written every minute.
  42. </info-popover>
  43. </div>
  44. </div>
  45. </div>